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

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