唐金木 07e2592bdb first commit 4 anni fa
..
Catalogue 07e2592bdb first commit 4 anni fa
Command 07e2592bdb first commit 4 anni fa
DataCollector 07e2592bdb first commit 4 anni fa
DependencyInjection 07e2592bdb first commit 4 anni fa
Dumper 07e2592bdb first commit 4 anni fa
Exception 07e2592bdb first commit 4 anni fa
Extractor 07e2592bdb first commit 4 anni fa
Formatter 07e2592bdb first commit 4 anni fa
Loader 07e2592bdb first commit 4 anni fa
Reader 07e2592bdb first commit 4 anni fa
Resources 07e2592bdb first commit 4 anni fa
Util 07e2592bdb first commit 4 anni fa
Writer 07e2592bdb first commit 4 anni fa
.gitattributes 07e2592bdb first commit 4 anni fa
CHANGELOG.md 07e2592bdb first commit 4 anni fa
DataCollectorTranslator.php 07e2592bdb first commit 4 anni fa
IdentityTranslator.php 07e2592bdb first commit 4 anni fa
LICENSE 07e2592bdb first commit 4 anni fa
LoggingTranslator.php 07e2592bdb first commit 4 anni fa
MessageCatalogue.php 07e2592bdb first commit 4 anni fa
MessageCatalogueInterface.php 07e2592bdb first commit 4 anni fa
MetadataAwareInterface.php 07e2592bdb first commit 4 anni fa
README.md 07e2592bdb first commit 4 anni fa
Translator.php 07e2592bdb first commit 4 anni fa
TranslatorBagInterface.php 07e2592bdb first commit 4 anni fa
composer.json 07e2592bdb first commit 4 anni 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;

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

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

Resources