unknown abd0e89a86 second commit 1 ヶ月 前
..
Catalogue abd0e89a86 second commit 1 ヶ月 前
Command abd0e89a86 second commit 1 ヶ月 前
DataCollector abd0e89a86 second commit 1 ヶ月 前
DependencyInjection abd0e89a86 second commit 1 ヶ月 前
Dumper abd0e89a86 second commit 1 ヶ月 前
Exception abd0e89a86 second commit 1 ヶ月 前
Extractor abd0e89a86 second commit 1 ヶ月 前
Formatter abd0e89a86 second commit 1 ヶ月 前
Loader abd0e89a86 second commit 1 ヶ月 前
Provider abd0e89a86 second commit 1 ヶ月 前
Reader abd0e89a86 second commit 1 ヶ月 前
Resources abd0e89a86 second commit 1 ヶ月 前
Test abd0e89a86 second commit 1 ヶ月 前
Util abd0e89a86 second commit 1 ヶ月 前
Writer abd0e89a86 second commit 1 ヶ月 前
CHANGELOG.md abd0e89a86 second commit 1 ヶ月 前
CatalogueMetadataAwareInterface.php abd0e89a86 second commit 1 ヶ月 前
DataCollectorTranslator.php abd0e89a86 second commit 1 ヶ月 前
IdentityTranslator.php abd0e89a86 second commit 1 ヶ月 前
LICENSE abd0e89a86 second commit 1 ヶ月 前
LocaleSwitcher.php abd0e89a86 second commit 1 ヶ月 前
LoggingTranslator.php abd0e89a86 second commit 1 ヶ月 前
MessageCatalogue.php abd0e89a86 second commit 1 ヶ月 前
MessageCatalogueInterface.php abd0e89a86 second commit 1 ヶ月 前
MetadataAwareInterface.php abd0e89a86 second commit 1 ヶ月 前
PseudoLocalizationTranslator.php abd0e89a86 second commit 1 ヶ月 前
README.md abd0e89a86 second commit 1 ヶ月 前
StaticMessage.php abd0e89a86 second commit 1 ヶ月 前
TranslatableMessage.php abd0e89a86 second commit 1 ヶ月 前
Translator.php abd0e89a86 second commit 1 ヶ月 前
TranslatorBag.php abd0e89a86 second commit 1 ヶ月 前
TranslatorBagInterface.php abd0e89a86 second commit 1 ヶ月 前
composer.json abd0e89a86 second commit 1 ヶ月 前

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