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

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