X\choro 48f1b97cc3 first commit há 1 ano atrás
..
Catalogue 48f1b97cc3 first commit há 1 ano atrás
Command 48f1b97cc3 first commit há 1 ano atrás
DataCollector 48f1b97cc3 first commit há 1 ano atrás
DependencyInjection 48f1b97cc3 first commit há 1 ano atrás
Dumper 48f1b97cc3 first commit há 1 ano atrás
Exception 48f1b97cc3 first commit há 1 ano atrás
Extractor 48f1b97cc3 first commit há 1 ano atrás
Formatter 48f1b97cc3 first commit há 1 ano atrás
Loader 48f1b97cc3 first commit há 1 ano atrás
Provider 48f1b97cc3 first commit há 1 ano atrás
Reader 48f1b97cc3 first commit há 1 ano atrás
Resources 48f1b97cc3 first commit há 1 ano atrás
Test 48f1b97cc3 first commit há 1 ano atrás
Util 48f1b97cc3 first commit há 1 ano atrás
Writer 48f1b97cc3 first commit há 1 ano atrás
CHANGELOG.md 48f1b97cc3 first commit há 1 ano atrás
CatalogueMetadataAwareInterface.php 48f1b97cc3 first commit há 1 ano atrás
DataCollectorTranslator.php 48f1b97cc3 first commit há 1 ano atrás
IdentityTranslator.php 48f1b97cc3 first commit há 1 ano atrás
LICENSE 48f1b97cc3 first commit há 1 ano atrás
LocaleSwitcher.php 48f1b97cc3 first commit há 1 ano atrás
LoggingTranslator.php 48f1b97cc3 first commit há 1 ano atrás
MessageCatalogue.php 48f1b97cc3 first commit há 1 ano atrás
MessageCatalogueInterface.php 48f1b97cc3 first commit há 1 ano atrás
MetadataAwareInterface.php 48f1b97cc3 first commit há 1 ano atrás
PseudoLocalizationTranslator.php 48f1b97cc3 first commit há 1 ano atrás
README.md 48f1b97cc3 first commit há 1 ano atrás
TranslatableMessage.php 48f1b97cc3 first commit há 1 ano atrás
Translator.php 48f1b97cc3 first commit há 1 ano atrás
TranslatorBag.php 48f1b97cc3 first commit há 1 ano atrás
TranslatorBagInterface.php 48f1b97cc3 first commit há 1 ano atrás
composer.json 48f1b97cc3 first commit há 1 ano 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;
use Symfony\Component\Translation\Loader\ArrayLoader;

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

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

Sponsor

Help Symfony by sponsoring its development!

Resources