kenan 0ab860990f falst il y a 1 an
..
Catalogue 0ab860990f falst il y a 1 an
Command 0ab860990f falst il y a 1 an
DataCollector 0ab860990f falst il y a 1 an
DependencyInjection 0ab860990f falst il y a 1 an
Dumper 0ab860990f falst il y a 1 an
Exception 0ab860990f falst il y a 1 an
Extractor 0ab860990f falst il y a 1 an
Formatter 0ab860990f falst il y a 1 an
Loader 0ab860990f falst il y a 1 an
Reader 0ab860990f falst il y a 1 an
Resources 0ab860990f falst il y a 1 an
Util 0ab860990f falst il y a 1 an
Writer 0ab860990f falst il y a 1 an
CHANGELOG.md 0ab860990f falst il y a 1 an
DataCollectorTranslator.php 0ab860990f falst il y a 1 an
IdentityTranslator.php 0ab860990f falst il y a 1 an
Interval.php 0ab860990f falst il y a 1 an
LICENSE 0ab860990f falst il y a 1 an
LoggingTranslator.php 0ab860990f falst il y a 1 an
MessageCatalogue.php 0ab860990f falst il y a 1 an
MessageCatalogueInterface.php 0ab860990f falst il y a 1 an
MessageSelector.php 0ab860990f falst il y a 1 an
MetadataAwareInterface.php 0ab860990f falst il y a 1 an
PluralizationRules.php 0ab860990f falst il y a 1 an
README.md 0ab860990f falst il y a 1 an
Translator.php 0ab860990f falst il y a 1 an
TranslatorBagInterface.php 0ab860990f falst il y a 1 an
TranslatorInterface.php 0ab860990f falst il y a 1 an
composer.json 0ab860990f falst 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