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

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