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

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