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

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