itskp-odense/vendor/symfony/translation
Anders 78df7dd754 v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
..
Catalogue v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Command v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
DataCollector v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
DependencyInjection v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Dumper v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Exception v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Extractor v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Formatter v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Loader v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Provider v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Reader v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Resources v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Test v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Util v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Writer v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
CHANGELOG.md v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
DataCollectorTranslator.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
IdentityTranslator.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
LICENSE v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
LoggingTranslator.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
MessageCatalogue.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
MessageCatalogueInterface.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
MetadataAwareInterface.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
PseudoLocalizationTranslator.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
README.md v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
TranslatableMessage.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
Translator.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
TranslatorBag.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
TranslatorBagInterface.php v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00
composer.json v0.0.0 Initial Commit 2021-06-01 10:17:03 +02:00

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