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

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