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

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