rkljw da65e32526 第一次提交 1 년 전
..
Catalogue da65e32526 第一次提交 1 년 전
Command da65e32526 第一次提交 1 년 전
DataCollector da65e32526 第一次提交 1 년 전
DependencyInjection da65e32526 第一次提交 1 년 전
Dumper da65e32526 第一次提交 1 년 전
Exception da65e32526 第一次提交 1 년 전
Extractor da65e32526 第一次提交 1 년 전
Formatter da65e32526 第一次提交 1 년 전
Loader da65e32526 第一次提交 1 년 전
Provider da65e32526 第一次提交 1 년 전
Reader da65e32526 第一次提交 1 년 전
Resources da65e32526 第一次提交 1 년 전
Test da65e32526 第一次提交 1 년 전
Util da65e32526 第一次提交 1 년 전
Writer da65e32526 第一次提交 1 년 전
CHANGELOG.md da65e32526 第一次提交 1 년 전
CatalogueMetadataAwareInterface.php da65e32526 第一次提交 1 년 전
DataCollectorTranslator.php da65e32526 第一次提交 1 년 전
IdentityTranslator.php da65e32526 第一次提交 1 년 전
LICENSE da65e32526 第一次提交 1 년 전
LocaleSwitcher.php da65e32526 第一次提交 1 년 전
LoggingTranslator.php da65e32526 第一次提交 1 년 전
MessageCatalogue.php da65e32526 第一次提交 1 년 전
MessageCatalogueInterface.php da65e32526 第一次提交 1 년 전
MetadataAwareInterface.php da65e32526 第一次提交 1 년 전
PseudoLocalizationTranslator.php da65e32526 第一次提交 1 년 전
README.md da65e32526 第一次提交 1 년 전
TranslatableMessage.php da65e32526 第一次提交 1 년 전
Translator.php da65e32526 第一次提交 1 년 전
TranslatorBag.php da65e32526 第一次提交 1 년 전
TranslatorBagInterface.php da65e32526 第一次提交 1 년 전
composer.json da65e32526 第一次提交 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