rkljw 589f85179c 第一次提交public_producer il y a 1 an
..
Catalogue 589f85179c 第一次提交public_producer il y a 1 an
Command 589f85179c 第一次提交public_producer il y a 1 an
DataCollector 589f85179c 第一次提交public_producer il y a 1 an
DependencyInjection 589f85179c 第一次提交public_producer il y a 1 an
Dumper 589f85179c 第一次提交public_producer il y a 1 an
Exception 589f85179c 第一次提交public_producer il y a 1 an
Extractor 589f85179c 第一次提交public_producer il y a 1 an
Formatter 589f85179c 第一次提交public_producer il y a 1 an
Loader 589f85179c 第一次提交public_producer il y a 1 an
Provider 589f85179c 第一次提交public_producer il y a 1 an
Reader 589f85179c 第一次提交public_producer il y a 1 an
Resources 589f85179c 第一次提交public_producer il y a 1 an
Test 589f85179c 第一次提交public_producer il y a 1 an
Util 589f85179c 第一次提交public_producer il y a 1 an
Writer 589f85179c 第一次提交public_producer il y a 1 an
CHANGELOG.md 589f85179c 第一次提交public_producer il y a 1 an
CatalogueMetadataAwareInterface.php 589f85179c 第一次提交public_producer il y a 1 an
DataCollectorTranslator.php 589f85179c 第一次提交public_producer il y a 1 an
IdentityTranslator.php 589f85179c 第一次提交public_producer il y a 1 an
LICENSE 589f85179c 第一次提交public_producer il y a 1 an
LocaleSwitcher.php 589f85179c 第一次提交public_producer il y a 1 an
LoggingTranslator.php 589f85179c 第一次提交public_producer il y a 1 an
MessageCatalogue.php 589f85179c 第一次提交public_producer il y a 1 an
MessageCatalogueInterface.php 589f85179c 第一次提交public_producer il y a 1 an
MetadataAwareInterface.php 589f85179c 第一次提交public_producer il y a 1 an
PseudoLocalizationTranslator.php 589f85179c 第一次提交public_producer il y a 1 an
README.md 589f85179c 第一次提交public_producer il y a 1 an
TranslatableMessage.php 589f85179c 第一次提交public_producer il y a 1 an
Translator.php 589f85179c 第一次提交public_producer il y a 1 an
TranslatorBag.php 589f85179c 第一次提交public_producer il y a 1 an
TranslatorBagInterface.php 589f85179c 第一次提交public_producer il y a 1 an
composer.json 589f85179c 第一次提交public_producer il y a 1 an

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