Zory dcdfcf7578 0720-0127-h01 2 주 전
..
Catalogue dcdfcf7578 0720-0127-h01 2 주 전
Command dcdfcf7578 0720-0127-h01 2 주 전
DataCollector dcdfcf7578 0720-0127-h01 2 주 전
DependencyInjection dcdfcf7578 0720-0127-h01 2 주 전
Dumper dcdfcf7578 0720-0127-h01 2 주 전
Exception dcdfcf7578 0720-0127-h01 2 주 전
Extractor dcdfcf7578 0720-0127-h01 2 주 전
Formatter dcdfcf7578 0720-0127-h01 2 주 전
Loader dcdfcf7578 0720-0127-h01 2 주 전
Provider dcdfcf7578 0720-0127-h01 2 주 전
Reader dcdfcf7578 0720-0127-h01 2 주 전
Resources dcdfcf7578 0720-0127-h01 2 주 전
Test dcdfcf7578 0720-0127-h01 2 주 전
Util dcdfcf7578 0720-0127-h01 2 주 전
Writer dcdfcf7578 0720-0127-h01 2 주 전
CHANGELOG.md dcdfcf7578 0720-0127-h01 2 주 전
CatalogueMetadataAwareInterface.php dcdfcf7578 0720-0127-h01 2 주 전
DataCollectorTranslator.php dcdfcf7578 0720-0127-h01 2 주 전
IdentityTranslator.php dcdfcf7578 0720-0127-h01 2 주 전
LICENSE dcdfcf7578 0720-0127-h01 2 주 전
LocaleSwitcher.php dcdfcf7578 0720-0127-h01 2 주 전
LoggingTranslator.php dcdfcf7578 0720-0127-h01 2 주 전
MessageCatalogue.php dcdfcf7578 0720-0127-h01 2 주 전
MessageCatalogueInterface.php dcdfcf7578 0720-0127-h01 2 주 전
MetadataAwareInterface.php dcdfcf7578 0720-0127-h01 2 주 전
PseudoLocalizationTranslator.php dcdfcf7578 0720-0127-h01 2 주 전
README.md dcdfcf7578 0720-0127-h01 2 주 전
StaticMessage.php dcdfcf7578 0720-0127-h01 2 주 전
TranslatableMessage.php dcdfcf7578 0720-0127-h01 2 주 전
Translator.php dcdfcf7578 0720-0127-h01 2 주 전
TranslatorBag.php dcdfcf7578 0720-0127-h01 2 주 전
TranslatorBagInterface.php dcdfcf7578 0720-0127-h01 2 주 전
composer.json dcdfcf7578 0720-0127-h01 2 주 전

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