唐金木 07e2592bdb first commit il y a 5 ans
..
Catalogue 07e2592bdb first commit il y a 5 ans
Command 07e2592bdb first commit il y a 5 ans
DataCollector 07e2592bdb first commit il y a 5 ans
DependencyInjection 07e2592bdb first commit il y a 5 ans
Dumper 07e2592bdb first commit il y a 5 ans
Exception 07e2592bdb first commit il y a 5 ans
Extractor 07e2592bdb first commit il y a 5 ans
Formatter 07e2592bdb first commit il y a 5 ans
Loader 07e2592bdb first commit il y a 5 ans
Reader 07e2592bdb first commit il y a 5 ans
Resources 07e2592bdb first commit il y a 5 ans
Util 07e2592bdb first commit il y a 5 ans
Writer 07e2592bdb first commit il y a 5 ans
.gitattributes 07e2592bdb first commit il y a 5 ans
CHANGELOG.md 07e2592bdb first commit il y a 5 ans
DataCollectorTranslator.php 07e2592bdb first commit il y a 5 ans
IdentityTranslator.php 07e2592bdb first commit il y a 5 ans
LICENSE 07e2592bdb first commit il y a 5 ans
LoggingTranslator.php 07e2592bdb first commit il y a 5 ans
MessageCatalogue.php 07e2592bdb first commit il y a 5 ans
MessageCatalogueInterface.php 07e2592bdb first commit il y a 5 ans
MetadataAwareInterface.php 07e2592bdb first commit il y a 5 ans
README.md 07e2592bdb first commit il y a 5 ans
Translator.php 07e2592bdb first commit il y a 5 ans
TranslatorBagInterface.php 07e2592bdb first commit il y a 5 ans
composer.json 07e2592bdb first commit il y a 5 ans

README.md

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

$ composer require symfony/translation
use Symfony\Component\Translation\Translator;

$translator = new Translator('fr_FR');
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Resources