yangkangwei cbf378a57b first il y a 1 an
..
Catalogue cbf378a57b first il y a 1 an
Command cbf378a57b first il y a 1 an
DataCollector cbf378a57b first il y a 1 an
DependencyInjection cbf378a57b first il y a 1 an
Dumper cbf378a57b first il y a 1 an
Exception cbf378a57b first il y a 1 an
Extractor cbf378a57b first il y a 1 an
Formatter cbf378a57b first il y a 1 an
Loader cbf378a57b first il y a 1 an
Reader cbf378a57b first il y a 1 an
Resources cbf378a57b first il y a 1 an
Util cbf378a57b first il y a 1 an
Writer cbf378a57b first il y a 1 an
CHANGELOG.md cbf378a57b first il y a 1 an
DataCollectorTranslator.php cbf378a57b first il y a 1 an
IdentityTranslator.php cbf378a57b first il y a 1 an
Interval.php cbf378a57b first il y a 1 an
LICENSE cbf378a57b first il y a 1 an
LoggingTranslator.php cbf378a57b first il y a 1 an
MessageCatalogue.php cbf378a57b first il y a 1 an
MessageCatalogueInterface.php cbf378a57b first il y a 1 an
MessageSelector.php cbf378a57b first il y a 1 an
MetadataAwareInterface.php cbf378a57b first il y a 1 an
PluralizationRules.php cbf378a57b first il y a 1 an
README.md cbf378a57b first il y a 1 an
Translator.php cbf378a57b first il y a 1 an
TranslatorBagInterface.php cbf378a57b first il y a 1 an
TranslatorInterface.php cbf378a57b first il y a 1 an

README.md

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