唐金木 07e2592bdb first commit 4 年之前
..
Catalogue 07e2592bdb first commit 4 年之前
Command 07e2592bdb first commit 4 年之前
DataCollector 07e2592bdb first commit 4 年之前
DependencyInjection 07e2592bdb first commit 4 年之前
Dumper 07e2592bdb first commit 4 年之前
Exception 07e2592bdb first commit 4 年之前
Extractor 07e2592bdb first commit 4 年之前
Formatter 07e2592bdb first commit 4 年之前
Loader 07e2592bdb first commit 4 年之前
Reader 07e2592bdb first commit 4 年之前
Resources 07e2592bdb first commit 4 年之前
Util 07e2592bdb first commit 4 年之前
Writer 07e2592bdb first commit 4 年之前
.gitattributes 07e2592bdb first commit 4 年之前
CHANGELOG.md 07e2592bdb first commit 4 年之前
DataCollectorTranslator.php 07e2592bdb first commit 4 年之前
IdentityTranslator.php 07e2592bdb first commit 4 年之前
LICENSE 07e2592bdb first commit 4 年之前
LoggingTranslator.php 07e2592bdb first commit 4 年之前
MessageCatalogue.php 07e2592bdb first commit 4 年之前
MessageCatalogueInterface.php 07e2592bdb first commit 4 年之前
MetadataAwareInterface.php 07e2592bdb first commit 4 年之前
README.md 07e2592bdb first commit 4 年之前
Translator.php 07e2592bdb first commit 4 年之前
TranslatorBagInterface.php 07e2592bdb first commit 4 年之前
composer.json 07e2592bdb first commit 4 年之前

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