parsaaghayi-backend/vendor/symfony/translation
DevOps 3aad54907e
Some checks failed
Deploy Backend / deploy (push) Failing after 3m44s
chore: commit complete vendor (Liara mirror no dist)
2026-06-23 15:37:41 +00:00
..
Catalogue chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Command chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
DataCollector chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
DependencyInjection chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Dumper chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Exception chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Extractor chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Formatter chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Loader chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Provider chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Reader chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Resources chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Test chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Util chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Writer chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
CatalogueMetadataAwareInterface.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
CHANGELOG.md chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
composer.json chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
DataCollectorTranslator.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
IdentityTranslator.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
LICENSE chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
LocaleSwitcher.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
LoggingTranslator.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
MessageCatalogue.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
MessageCatalogueInterface.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
MetadataAwareInterface.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
PseudoLocalizationTranslator.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
README.md chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
TranslatableMessage.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Translator.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
TranslatorBag.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
TranslatorBagInterface.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00: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