rkljw 600fc1a941 第一次提交 10 달 전
..
Catalogue 600fc1a941 第一次提交 10 달 전
Command 600fc1a941 第一次提交 10 달 전
DataCollector 600fc1a941 第一次提交 10 달 전
DependencyInjection 600fc1a941 第一次提交 10 달 전
Dumper 600fc1a941 第一次提交 10 달 전
Exception 600fc1a941 第一次提交 10 달 전
Extractor 600fc1a941 第一次提交 10 달 전
Formatter 600fc1a941 第一次提交 10 달 전
Loader 600fc1a941 第一次提交 10 달 전
Provider 600fc1a941 第一次提交 10 달 전
Reader 600fc1a941 第一次提交 10 달 전
Resources 600fc1a941 第一次提交 10 달 전
Test 600fc1a941 第一次提交 10 달 전
Util 600fc1a941 第一次提交 10 달 전
Writer 600fc1a941 第一次提交 10 달 전
CHANGELOG.md 600fc1a941 第一次提交 10 달 전
CatalogueMetadataAwareInterface.php 600fc1a941 第一次提交 10 달 전
DataCollectorTranslator.php 600fc1a941 第一次提交 10 달 전
IdentityTranslator.php 600fc1a941 第一次提交 10 달 전
LICENSE 600fc1a941 第一次提交 10 달 전
LocaleSwitcher.php 600fc1a941 第一次提交 10 달 전
LoggingTranslator.php 600fc1a941 第一次提交 10 달 전
MessageCatalogue.php 600fc1a941 第一次提交 10 달 전
MessageCatalogueInterface.php 600fc1a941 第一次提交 10 달 전
MetadataAwareInterface.php 600fc1a941 第一次提交 10 달 전
PseudoLocalizationTranslator.php 600fc1a941 第一次提交 10 달 전
README.md 600fc1a941 第一次提交 10 달 전
TranslatableMessage.php 600fc1a941 第一次提交 10 달 전
Translator.php 600fc1a941 第一次提交 10 달 전
TranslatorBag.php 600fc1a941 第一次提交 10 달 전
TranslatorBagInterface.php 600fc1a941 第一次提交 10 달 전
composer.json 600fc1a941 第一次提交 10 달 전

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