Dmitriy Gnatenko 2c154caeca Vendors updated 3 anos atrás
..
Catalogue 2e430a556d Vendors updated 3 anos atrás
Command 2e430a556d Vendors updated 3 anos atrás
DataCollector e5f3fbd37b Vendors updated 3 anos atrás
DependencyInjection 0b8749ecf8 Update vendors 3 anos atrás
Dumper 2e430a556d Vendors updated 3 anos atrás
Exception da31d8a6df Revert "Vendors updated" 4 anos atrás
Extractor 2e430a556d Vendors updated 3 anos atrás
Formatter da31d8a6df Revert "Vendors updated" 4 anos atrás
Loader 2e430a556d Vendors updated 3 anos atrás
Reader da31d8a6df Revert "Vendors updated" 4 anos atrás
Resources 2e430a556d Vendors updated 3 anos atrás
Util 0b8749ecf8 Update vendors 3 anos atrás
Writer da31d8a6df Revert "Vendors updated" 4 anos atrás
CHANGELOG.md 9329362bd0 Symfony updated to 5.2 3 anos atrás
DataCollectorTranslator.php 0b8749ecf8 Update vendors 3 anos atrás
IdentityTranslator.php da31d8a6df Revert "Vendors updated" 4 anos atrás
LICENSE e5f3fbd37b Vendors updated 3 anos atrás
LoggingTranslator.php da31d8a6df Revert "Vendors updated" 4 anos atrás
MessageCatalogue.php 2c154caeca Vendors updated 3 anos atrás
MessageCatalogueInterface.php 0b8749ecf8 Update vendors 3 anos atrás
MetadataAwareInterface.php da31d8a6df Revert "Vendors updated" 4 anos atrás
PluralizationRules.php e5f3fbd37b Vendors updated 3 anos atrás
PseudoLocalizationTranslator.php 9329362bd0 Symfony updated to 5.2 3 anos atrás
README.md e5f3fbd37b Vendors updated 3 anos atrás
TranslatableMessage.php 9329362bd0 Symfony updated to 5.2 3 anos atrás
Translator.php 9329362bd0 Symfony updated to 5.2 3 anos atrás
TranslatorBagInterface.php da31d8a6df Revert "Vendors updated" 4 anos atrás
composer.json 2e430a556d Vendors updated 3 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;
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 ! »

Resources