Zory dcdfcf7578 0720-0127-h01 il y a 2 semaines
..
Catalogue dcdfcf7578 0720-0127-h01 il y a 2 semaines
Command dcdfcf7578 0720-0127-h01 il y a 2 semaines
DataCollector dcdfcf7578 0720-0127-h01 il y a 2 semaines
DependencyInjection dcdfcf7578 0720-0127-h01 il y a 2 semaines
Dumper dcdfcf7578 0720-0127-h01 il y a 2 semaines
Exception dcdfcf7578 0720-0127-h01 il y a 2 semaines
Extractor dcdfcf7578 0720-0127-h01 il y a 2 semaines
Formatter dcdfcf7578 0720-0127-h01 il y a 2 semaines
Loader dcdfcf7578 0720-0127-h01 il y a 2 semaines
Provider dcdfcf7578 0720-0127-h01 il y a 2 semaines
Reader dcdfcf7578 0720-0127-h01 il y a 2 semaines
Resources dcdfcf7578 0720-0127-h01 il y a 2 semaines
Test dcdfcf7578 0720-0127-h01 il y a 2 semaines
Util dcdfcf7578 0720-0127-h01 il y a 2 semaines
Writer dcdfcf7578 0720-0127-h01 il y a 2 semaines
CHANGELOG.md dcdfcf7578 0720-0127-h01 il y a 2 semaines
CatalogueMetadataAwareInterface.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
DataCollectorTranslator.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
IdentityTranslator.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
LICENSE dcdfcf7578 0720-0127-h01 il y a 2 semaines
LocaleSwitcher.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
LoggingTranslator.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
MessageCatalogue.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
MessageCatalogueInterface.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
MetadataAwareInterface.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
PseudoLocalizationTranslator.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
README.md dcdfcf7578 0720-0127-h01 il y a 2 semaines
StaticMessage.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
TranslatableMessage.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
Translator.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
TranslatorBag.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
TranslatorBagInterface.php dcdfcf7578 0720-0127-h01 il y a 2 semaines
composer.json dcdfcf7578 0720-0127-h01 il y a 2 semaines

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