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

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