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

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