ss 33d2a96cf2 初始化 8 달 전
..
Catalogue 33d2a96cf2 初始化 8 달 전
Command 33d2a96cf2 初始化 8 달 전
DataCollector 33d2a96cf2 初始化 8 달 전
DependencyInjection 33d2a96cf2 初始化 8 달 전
Dumper 33d2a96cf2 初始化 8 달 전
Exception 33d2a96cf2 初始化 8 달 전
Extractor 33d2a96cf2 初始化 8 달 전
Formatter 33d2a96cf2 初始化 8 달 전
Loader 33d2a96cf2 初始化 8 달 전
Reader 33d2a96cf2 初始化 8 달 전
Resources 33d2a96cf2 初始化 8 달 전
Util 33d2a96cf2 初始化 8 달 전
Writer 33d2a96cf2 初始化 8 달 전
CHANGELOG.md 33d2a96cf2 初始化 8 달 전
DataCollectorTranslator.php 33d2a96cf2 初始化 8 달 전
IdentityTranslator.php 33d2a96cf2 初始化 8 달 전
Interval.php 33d2a96cf2 初始化 8 달 전
LICENSE 33d2a96cf2 初始化 8 달 전
LoggingTranslator.php 33d2a96cf2 初始化 8 달 전
MessageCatalogue.php 33d2a96cf2 初始化 8 달 전
MessageCatalogueInterface.php 33d2a96cf2 初始化 8 달 전
MessageSelector.php 33d2a96cf2 初始化 8 달 전
MetadataAwareInterface.php 33d2a96cf2 初始化 8 달 전
PluralizationRules.php 33d2a96cf2 初始化 8 달 전
README.md 33d2a96cf2 初始化 8 달 전
Translator.php 33d2a96cf2 初始化 8 달 전
TranslatorBagInterface.php 33d2a96cf2 初始化 8 달 전
TranslatorInterface.php 33d2a96cf2 初始化 8 달 전
composer.json 33d2a96cf2 初始化 8 달 전

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 ! »

Resources