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

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