刘远航 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
..
Catalogue 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Command 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
DataCollector 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
DependencyInjection 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Dumper 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Exception 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Extractor 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Formatter 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Loader 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Reader 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Resources 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Util 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Writer 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
CHANGELOG.md 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
DataCollectorTranslator.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
IdentityTranslator.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Interval.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
LICENSE 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
LoggingTranslator.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
MessageCatalogue.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
MessageCatalogueInterface.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
MessageSelector.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
MetadataAwareInterface.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
PluralizationRules.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
README.md 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
Translator.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
TranslatorBagInterface.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
TranslatorInterface.php 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos
composer.json 94eefae904 vendor %!s(int64=4) %!d(string=hai) anos

README.md

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

$ composer require symfony/translation
use Symfony\Component\Translation\Translator;

$translator = new Translator('fr_FR');
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Resources