parsaaghayi-backend/vendor/symfony/translation
parsa aghaei 640bd67556
Some checks failed
Deploy Backend / deploy (push) Failing after 1m13s
chore: commit vendor for offline build
2026-06-28 16:47:17 +03:30
..
Catalogue chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Command chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
DataCollector chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
DependencyInjection chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Dumper chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Exception chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Extractor chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Formatter chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Loader chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Provider chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Reader chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
Resources chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Test chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Util chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Writer chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
CatalogueMetadataAwareInterface.php chore: commit complete vendor (Liara mirror no dist) 2026-06-23 15:37:41 +00:00
CHANGELOG.md chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
composer.json chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
DataCollectorTranslator.php chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
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 vendor for offline build 2026-06-28 16:47:17 +03:30
MessageCatalogue.php chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
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 vendor for offline build 2026-06-28 16:47:17 +03:30
README.md chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
StaticMessage.php chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
TranslatableMessage.php chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
Translator.php chore: commit vendor for offline build 2026-06-28 16:47:17 +03:30
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

Help Symfony by sponsoring its development!

Resources