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

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