mailcow/data/web/inc/lib/vendor/symfony/translation
2021-08-08 16:06:55 +02:00
..
Catalogue [Web] Update composer deps 2021-06-23 08:05:09 +02:00
Command [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
DataCollector
DependencyInjection [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
Dumper [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
Exception [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
Extractor [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
Formatter
Loader [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
Provider [Web] Update composer deps 2021-06-23 08:05:09 +02:00
Reader
Resources [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
Test [Web] Update composer deps 2021-06-23 08:05:09 +02:00
Util
Writer [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
CHANGELOG.md [Web] Update composer deps 2021-06-23 08:05:09 +02:00
composer.json [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
DataCollectorTranslator.php [Web] Update composer deps 2021-06-23 08:05:09 +02:00
IdentityTranslator.php
LICENSE
LoggingTranslator.php [Web] Update composer deps 2021-06-23 08:05:09 +02:00
MessageCatalogue.php [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
MessageCatalogueInterface.php
MetadataAwareInterface.php [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
PseudoLocalizationTranslator.php [Web] Update composer deps 2021-06-23 08:05:09 +02:00
README.md [Web] Update composer deps 2021-06-23 08:05:09 +02:00
TranslatableMessage.php
Translator.php [Web] Some minor fixes and improvements for PHP 8 2021-08-08 16:06:55 +02:00
TranslatorBag.php [Web] Update composer deps 2021-06-23 08:05:09 +02:00
TranslatorBagInterface.php [Web] Update composer deps 2021-06-23 08:05:09 +02:00

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

$ composer require symfony/translation
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\Loader\ArrayLoader;

$translator = new Translator('fr_FR');
$translator->addLoader('array', new ArrayLoader());
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Resources