fedi-feed-router/backend/vendor/symfony/translation
2025-08-03 20:35:13 +02:00
..
Catalogue Front/back split - first draft 2025-08-03 20:35:13 +02:00
Command Front/back split - first draft 2025-08-03 20:35:13 +02:00
DataCollector Front/back split - first draft 2025-08-03 20:35:13 +02:00
DependencyInjection Front/back split - first draft 2025-08-03 20:35:13 +02:00
Dumper Front/back split - first draft 2025-08-03 20:35:13 +02:00
Exception Front/back split - first draft 2025-08-03 20:35:13 +02:00
Extractor Front/back split - first draft 2025-08-03 20:35:13 +02:00
Formatter Front/back split - first draft 2025-08-03 20:35:13 +02:00
Loader Front/back split - first draft 2025-08-03 20:35:13 +02:00
Provider Front/back split - first draft 2025-08-03 20:35:13 +02:00
Reader Front/back split - first draft 2025-08-03 20:35:13 +02:00
Resources Front/back split - first draft 2025-08-03 20:35:13 +02:00
Test Front/back split - first draft 2025-08-03 20:35:13 +02:00
Util Front/back split - first draft 2025-08-03 20:35:13 +02:00
Writer Front/back split - first draft 2025-08-03 20:35:13 +02:00
CatalogueMetadataAwareInterface.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
CHANGELOG.md Front/back split - first draft 2025-08-03 20:35:13 +02:00
composer.json Front/back split - first draft 2025-08-03 20:35:13 +02:00
DataCollectorTranslator.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
IdentityTranslator.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
LICENSE Front/back split - first draft 2025-08-03 20:35:13 +02:00
LocaleSwitcher.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
LoggingTranslator.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
MessageCatalogue.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
MessageCatalogueInterface.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
MetadataAwareInterface.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
PseudoLocalizationTranslator.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
README.md Front/back split - first draft 2025-08-03 20:35:13 +02:00
TranslatableMessage.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
Translator.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
TranslatorBag.php Front/back split - first draft 2025-08-03 20:35:13 +02:00
TranslatorBagInterface.php Front/back split - first draft 2025-08-03 20:35: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 ! »

Sponsor

The Translation component for Symfony 7.1 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.

Help Symfony by sponsoring its development!

Resources