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

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