唐金木 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
..
Catalogue 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Command 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
DataCollector 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
DependencyInjection 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Dumper 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Exception 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Extractor 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Formatter 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Loader 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Reader 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Resources 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Util 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Writer 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
.gitattributes 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
CHANGELOG.md 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
DataCollectorTranslator.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
IdentityTranslator.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
LICENSE 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
LoggingTranslator.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
MessageCatalogue.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
MessageCatalogueInterface.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
MetadataAwareInterface.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
README.md 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
Translator.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
TranslatorBagInterface.php 07e2592bdb first commit %!s(int64=4) %!d(string=hai) anos
composer.json 07e2592bdb first commit %!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