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