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

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