Dmitriy Gnatenko 2c154caeca Vendors updated 3 lat temu
..
Catalogue 2e430a556d Vendors updated 3 lat temu
Command 2e430a556d Vendors updated 3 lat temu
DataCollector e5f3fbd37b Vendors updated 3 lat temu
DependencyInjection 0b8749ecf8 Update vendors 3 lat temu
Dumper 2e430a556d Vendors updated 3 lat temu
Exception da31d8a6df Revert "Vendors updated" 4 lat temu
Extractor 2e430a556d Vendors updated 3 lat temu
Formatter da31d8a6df Revert "Vendors updated" 4 lat temu
Loader 2e430a556d Vendors updated 3 lat temu
Reader da31d8a6df Revert "Vendors updated" 4 lat temu
Resources 2e430a556d Vendors updated 3 lat temu
Util 0b8749ecf8 Update vendors 3 lat temu
Writer da31d8a6df Revert "Vendors updated" 4 lat temu
CHANGELOG.md 9329362bd0 Symfony updated to 5.2 3 lat temu
DataCollectorTranslator.php 0b8749ecf8 Update vendors 3 lat temu
IdentityTranslator.php da31d8a6df Revert "Vendors updated" 4 lat temu
LICENSE e5f3fbd37b Vendors updated 3 lat temu
LoggingTranslator.php da31d8a6df Revert "Vendors updated" 4 lat temu
MessageCatalogue.php 2c154caeca Vendors updated 3 lat temu
MessageCatalogueInterface.php 0b8749ecf8 Update vendors 3 lat temu
MetadataAwareInterface.php da31d8a6df Revert "Vendors updated" 4 lat temu
PluralizationRules.php e5f3fbd37b Vendors updated 3 lat temu
PseudoLocalizationTranslator.php 9329362bd0 Symfony updated to 5.2 3 lat temu
README.md e5f3fbd37b Vendors updated 3 lat temu
TranslatableMessage.php 9329362bd0 Symfony updated to 5.2 3 lat temu
Translator.php 9329362bd0 Symfony updated to 5.2 3 lat temu
TranslatorBagInterface.php da31d8a6df Revert "Vendors updated" 4 lat temu
composer.json 2e430a556d Vendors updated 3 lat temu

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