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

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