X\choro 48f1b97cc3 first commit 11 сар өмнө
..
Catalogue 48f1b97cc3 first commit 11 сар өмнө
Command 48f1b97cc3 first commit 11 сар өмнө
DataCollector 48f1b97cc3 first commit 11 сар өмнө
DependencyInjection 48f1b97cc3 first commit 11 сар өмнө
Dumper 48f1b97cc3 first commit 11 сар өмнө
Exception 48f1b97cc3 first commit 11 сар өмнө
Extractor 48f1b97cc3 first commit 11 сар өмнө
Formatter 48f1b97cc3 first commit 11 сар өмнө
Loader 48f1b97cc3 first commit 11 сар өмнө
Provider 48f1b97cc3 first commit 11 сар өмнө
Reader 48f1b97cc3 first commit 11 сар өмнө
Resources 48f1b97cc3 first commit 11 сар өмнө
Test 48f1b97cc3 first commit 11 сар өмнө
Util 48f1b97cc3 first commit 11 сар өмнө
Writer 48f1b97cc3 first commit 11 сар өмнө
CHANGELOG.md 48f1b97cc3 first commit 11 сар өмнө
CatalogueMetadataAwareInterface.php 48f1b97cc3 first commit 11 сар өмнө
DataCollectorTranslator.php 48f1b97cc3 first commit 11 сар өмнө
IdentityTranslator.php 48f1b97cc3 first commit 11 сар өмнө
LICENSE 48f1b97cc3 first commit 11 сар өмнө
LocaleSwitcher.php 48f1b97cc3 first commit 11 сар өмнө
LoggingTranslator.php 48f1b97cc3 first commit 11 сар өмнө
MessageCatalogue.php 48f1b97cc3 first commit 11 сар өмнө
MessageCatalogueInterface.php 48f1b97cc3 first commit 11 сар өмнө
MetadataAwareInterface.php 48f1b97cc3 first commit 11 сар өмнө
PseudoLocalizationTranslator.php 48f1b97cc3 first commit 11 сар өмнө
README.md 48f1b97cc3 first commit 11 сар өмнө
TranslatableMessage.php 48f1b97cc3 first commit 11 сар өмнө
Translator.php 48f1b97cc3 first commit 11 сар өмнө
TranslatorBag.php 48f1b97cc3 first commit 11 сар өмнө
TranslatorBagInterface.php 48f1b97cc3 first commit 11 сар өмнө
composer.json 48f1b97cc3 first commit 11 сар өмнө

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