rkljw a5ab796e9f Revert "server-port" il y a 5 mois
..
Catalogue 2d74f709d7 news_producer il y a 8 mois
Command 2d74f709d7 news_producer il y a 8 mois
DataCollector 2d74f709d7 news_producer il y a 8 mois
DependencyInjection 2d74f709d7 news_producer il y a 8 mois
Dumper a5ab796e9f Revert "server-port" il y a 5 mois
Exception 2d74f709d7 news_producer il y a 8 mois
Extractor a5ab796e9f Revert "server-port" il y a 5 mois
Formatter 2d74f709d7 news_producer il y a 8 mois
Loader a5ab796e9f Revert "server-port" il y a 5 mois
Provider 2d74f709d7 news_producer il y a 8 mois
Reader 2d74f709d7 news_producer il y a 8 mois
Resources 2d74f709d7 news_producer il y a 8 mois
Test 2d74f709d7 news_producer il y a 8 mois
Util 2d74f709d7 news_producer il y a 8 mois
Writer 2d74f709d7 news_producer il y a 8 mois
CHANGELOG.md 2d74f709d7 news_producer il y a 8 mois
CatalogueMetadataAwareInterface.php 2d74f709d7 news_producer il y a 8 mois
DataCollectorTranslator.php 2d74f709d7 news_producer il y a 8 mois
IdentityTranslator.php 2d74f709d7 news_producer il y a 8 mois
LICENSE 2d74f709d7 news_producer il y a 8 mois
LocaleSwitcher.php 2d74f709d7 news_producer il y a 8 mois
LoggingTranslator.php 2d74f709d7 news_producer il y a 8 mois
MessageCatalogue.php 2d74f709d7 news_producer il y a 8 mois
MessageCatalogueInterface.php 2d74f709d7 news_producer il y a 8 mois
MetadataAwareInterface.php 2d74f709d7 news_producer il y a 8 mois
PseudoLocalizationTranslator.php 2d74f709d7 news_producer il y a 8 mois
README.md 2d74f709d7 news_producer il y a 8 mois
TranslatableMessage.php 2d74f709d7 news_producer il y a 8 mois
Translator.php 2d74f709d7 news_producer il y a 8 mois
TranslatorBag.php 2d74f709d7 news_producer il y a 8 mois
TranslatorBagInterface.php 2d74f709d7 news_producer il y a 8 mois
composer.json 2d74f709d7 news_producer il y a 8 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