rkljw 600fc1a941 第一次提交 há 10 meses atrás
..
Catalogue 600fc1a941 第一次提交 há 10 meses atrás
Command 600fc1a941 第一次提交 há 10 meses atrás
DataCollector 600fc1a941 第一次提交 há 10 meses atrás
DependencyInjection 600fc1a941 第一次提交 há 10 meses atrás
Dumper 600fc1a941 第一次提交 há 10 meses atrás
Exception 600fc1a941 第一次提交 há 10 meses atrás
Extractor 600fc1a941 第一次提交 há 10 meses atrás
Formatter 600fc1a941 第一次提交 há 10 meses atrás
Loader 600fc1a941 第一次提交 há 10 meses atrás
Provider 600fc1a941 第一次提交 há 10 meses atrás
Reader 600fc1a941 第一次提交 há 10 meses atrás
Resources 600fc1a941 第一次提交 há 10 meses atrás
Test 600fc1a941 第一次提交 há 10 meses atrás
Util 600fc1a941 第一次提交 há 10 meses atrás
Writer 600fc1a941 第一次提交 há 10 meses atrás
CHANGELOG.md 600fc1a941 第一次提交 há 10 meses atrás
CatalogueMetadataAwareInterface.php 600fc1a941 第一次提交 há 10 meses atrás
DataCollectorTranslator.php 600fc1a941 第一次提交 há 10 meses atrás
IdentityTranslator.php 600fc1a941 第一次提交 há 10 meses atrás
LICENSE 600fc1a941 第一次提交 há 10 meses atrás
LocaleSwitcher.php 600fc1a941 第一次提交 há 10 meses atrás
LoggingTranslator.php 600fc1a941 第一次提交 há 10 meses atrás
MessageCatalogue.php 600fc1a941 第一次提交 há 10 meses atrás
MessageCatalogueInterface.php 600fc1a941 第一次提交 há 10 meses atrás
MetadataAwareInterface.php 600fc1a941 第一次提交 há 10 meses atrás
PseudoLocalizationTranslator.php 600fc1a941 第一次提交 há 10 meses atrás
README.md 600fc1a941 第一次提交 há 10 meses atrás
TranslatableMessage.php 600fc1a941 第一次提交 há 10 meses atrás
Translator.php 600fc1a941 第一次提交 há 10 meses atrás
TranslatorBag.php 600fc1a941 第一次提交 há 10 meses atrás
TranslatorBagInterface.php 600fc1a941 第一次提交 há 10 meses atrás
composer.json 600fc1a941 第一次提交 há 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 ! »

Sponsor

Help Symfony by sponsoring its development!

Resources