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

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