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

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