tao-test/app/vendor/symfony/translation
2022-08-29 20:14:13 +02:00
..
Catalogue Code, before instalation. 2022-08-29 20:14:13 +02:00
Command Code, before instalation. 2022-08-29 20:14:13 +02:00
DataCollector Code, before instalation. 2022-08-29 20:14:13 +02:00
DependencyInjection Code, before instalation. 2022-08-29 20:14:13 +02:00
Dumper Code, before instalation. 2022-08-29 20:14:13 +02:00
Exception Code, before instalation. 2022-08-29 20:14:13 +02:00
Extractor Code, before instalation. 2022-08-29 20:14:13 +02:00
Formatter Code, before instalation. 2022-08-29 20:14:13 +02:00
Loader Code, before instalation. 2022-08-29 20:14:13 +02:00
Provider Code, before instalation. 2022-08-29 20:14:13 +02:00
Reader Code, before instalation. 2022-08-29 20:14:13 +02:00
Resources Code, before instalation. 2022-08-29 20:14:13 +02:00
Test Code, before instalation. 2022-08-29 20:14:13 +02:00
Util Code, before instalation. 2022-08-29 20:14:13 +02:00
Writer Code, before instalation. 2022-08-29 20:14:13 +02:00
CHANGELOG.md Code, before instalation. 2022-08-29 20:14:13 +02:00
composer.json Code, before instalation. 2022-08-29 20:14:13 +02:00
DataCollectorTranslator.php Code, before instalation. 2022-08-29 20:14:13 +02:00
IdentityTranslator.php Code, before instalation. 2022-08-29 20:14:13 +02:00
LICENSE Code, before instalation. 2022-08-29 20:14:13 +02:00
LoggingTranslator.php Code, before instalation. 2022-08-29 20:14:13 +02:00
MessageCatalogue.php Code, before instalation. 2022-08-29 20:14:13 +02:00
MessageCatalogueInterface.php Code, before instalation. 2022-08-29 20:14:13 +02:00
MetadataAwareInterface.php Code, before instalation. 2022-08-29 20:14:13 +02:00
PseudoLocalizationTranslator.php Code, before instalation. 2022-08-29 20:14:13 +02:00
README.md Code, before instalation. 2022-08-29 20:14:13 +02:00
TranslatableMessage.php Code, before instalation. 2022-08-29 20:14:13 +02:00
Translator.php Code, before instalation. 2022-08-29 20:14:13 +02:00
TranslatorBag.php Code, before instalation. 2022-08-29 20:14:13 +02:00
TranslatorBagInterface.php Code, before instalation. 2022-08-29 20:14:13 +02:00

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