unknown a0372a28bb second commit il y a 13 heures
..
Catalogue a0372a28bb second commit il y a 13 heures
Command a0372a28bb second commit il y a 13 heures
DataCollector a0372a28bb second commit il y a 13 heures
DependencyInjection a0372a28bb second commit il y a 13 heures
Dumper a0372a28bb second commit il y a 13 heures
Exception a0372a28bb second commit il y a 13 heures
Extractor a0372a28bb second commit il y a 13 heures
Formatter a0372a28bb second commit il y a 13 heures
Loader a0372a28bb second commit il y a 13 heures
Provider a0372a28bb second commit il y a 13 heures
Reader a0372a28bb second commit il y a 13 heures
Resources a0372a28bb second commit il y a 13 heures
Test a0372a28bb second commit il y a 13 heures
Util a0372a28bb second commit il y a 13 heures
Writer a0372a28bb second commit il y a 13 heures
CHANGELOG.md a0372a28bb second commit il y a 13 heures
CatalogueMetadataAwareInterface.php a0372a28bb second commit il y a 13 heures
DataCollectorTranslator.php a0372a28bb second commit il y a 13 heures
IdentityTranslator.php a0372a28bb second commit il y a 13 heures
LICENSE a0372a28bb second commit il y a 13 heures
LocaleSwitcher.php a0372a28bb second commit il y a 13 heures
LoggingTranslator.php a0372a28bb second commit il y a 13 heures
MessageCatalogue.php a0372a28bb second commit il y a 13 heures
MessageCatalogueInterface.php a0372a28bb second commit il y a 13 heures
MetadataAwareInterface.php a0372a28bb second commit il y a 13 heures
PseudoLocalizationTranslator.php a0372a28bb second commit il y a 13 heures
README.md a0372a28bb second commit il y a 13 heures
StaticMessage.php a0372a28bb second commit il y a 13 heures
TranslatableMessage.php a0372a28bb second commit il y a 13 heures
Translator.php a0372a28bb second commit il y a 13 heures
TranslatorBag.php a0372a28bb second commit il y a 13 heures
TranslatorBagInterface.php a0372a28bb second commit il y a 13 heures
composer.json a0372a28bb second commit il y a 13 heures

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 ! »

Sponsor

Help Symfony by sponsoring its development!

Resources