X\choro 48f1b97cc3 first commit hace 1 año
..
Catalogue 48f1b97cc3 first commit hace 1 año
Command 48f1b97cc3 first commit hace 1 año
DataCollector 48f1b97cc3 first commit hace 1 año
DependencyInjection 48f1b97cc3 first commit hace 1 año
Dumper 48f1b97cc3 first commit hace 1 año
Exception 48f1b97cc3 first commit hace 1 año
Extractor 48f1b97cc3 first commit hace 1 año
Formatter 48f1b97cc3 first commit hace 1 año
Loader 48f1b97cc3 first commit hace 1 año
Provider 48f1b97cc3 first commit hace 1 año
Reader 48f1b97cc3 first commit hace 1 año
Resources 48f1b97cc3 first commit hace 1 año
Test 48f1b97cc3 first commit hace 1 año
Util 48f1b97cc3 first commit hace 1 año
Writer 48f1b97cc3 first commit hace 1 año
CHANGELOG.md 48f1b97cc3 first commit hace 1 año
CatalogueMetadataAwareInterface.php 48f1b97cc3 first commit hace 1 año
DataCollectorTranslator.php 48f1b97cc3 first commit hace 1 año
IdentityTranslator.php 48f1b97cc3 first commit hace 1 año
LICENSE 48f1b97cc3 first commit hace 1 año
LocaleSwitcher.php 48f1b97cc3 first commit hace 1 año
LoggingTranslator.php 48f1b97cc3 first commit hace 1 año
MessageCatalogue.php 48f1b97cc3 first commit hace 1 año
MessageCatalogueInterface.php 48f1b97cc3 first commit hace 1 año
MetadataAwareInterface.php 48f1b97cc3 first commit hace 1 año
PseudoLocalizationTranslator.php 48f1b97cc3 first commit hace 1 año
README.md 48f1b97cc3 first commit hace 1 año
TranslatableMessage.php 48f1b97cc3 first commit hace 1 año
Translator.php 48f1b97cc3 first commit hace 1 año
TranslatorBag.php 48f1b97cc3 first commit hace 1 año
TranslatorBagInterface.php 48f1b97cc3 first commit hace 1 año
composer.json 48f1b97cc3 first commit hace 1 año

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