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