Veranstaltungen-APP/vendor/symfony/translation
2026-04-09 21:24:07 +02:00
..
Catalogue ttt 2026-04-09 21:24:07 +02:00
Command ttt 2026-04-09 21:24:07 +02:00
DataCollector ttt 2026-04-09 21:24:07 +02:00
DependencyInjection ttt 2026-04-09 21:24:07 +02:00
Dumper ttt 2026-04-09 21:24:07 +02:00
Exception ttt 2026-04-09 21:24:07 +02:00
Extractor ttt 2026-04-09 21:24:07 +02:00
Formatter ttt 2026-04-09 21:24:07 +02:00
Loader ttt 2026-04-09 21:24:07 +02:00
Provider ttt 2026-04-09 21:24:07 +02:00
Reader ttt 2026-04-09 21:24:07 +02:00
Resources ttt 2026-04-09 21:24:07 +02:00
Test ttt 2026-04-09 21:24:07 +02:00
Util ttt 2026-04-09 21:24:07 +02:00
Writer ttt 2026-04-09 21:24:07 +02:00
CatalogueMetadataAwareInterface.php ttt 2026-04-09 21:24:07 +02:00
CHANGELOG.md ttt 2026-04-09 21:24:07 +02:00
composer.json ttt 2026-04-09 21:24:07 +02:00
DataCollectorTranslator.php ttt 2026-04-09 21:24:07 +02:00
IdentityTranslator.php ttt 2026-04-09 21:24:07 +02:00
LICENSE ttt 2026-04-09 21:24:07 +02:00
LocaleSwitcher.php ttt 2026-04-09 21:24:07 +02:00
LoggingTranslator.php ttt 2026-04-09 21:24:07 +02:00
MessageCatalogue.php ttt 2026-04-09 21:24:07 +02:00
MessageCatalogueInterface.php ttt 2026-04-09 21:24:07 +02:00
MetadataAwareInterface.php ttt 2026-04-09 21:24:07 +02:00
PseudoLocalizationTranslator.php ttt 2026-04-09 21:24:07 +02:00
README.md ttt 2026-04-09 21:24:07 +02:00
StaticMessage.php ttt 2026-04-09 21:24:07 +02:00
TranslatableMessage.php ttt 2026-04-09 21:24:07 +02:00
Translator.php ttt 2026-04-09 21:24:07 +02:00
TranslatorBag.php ttt 2026-04-09 21:24:07 +02:00
TranslatorBagInterface.php ttt 2026-04-09 21:24:07 +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 ! »

Sponsor

Help Symfony by sponsoring its development!

Resources