parsaaghayi-backend/vendor/symfony/translation
DevOps c9a688e80d
Some checks failed
Deploy Backend / deploy (push) Has been cancelled
chore: commit vendor directory for fully offline builds
2026-06-28 18:08:40 +00:00
..
Catalogue chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Command chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
DataCollector chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
DependencyInjection chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Dumper chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Exception chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Extractor chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Formatter chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Loader chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Provider chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Reader chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Resources chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Test chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Util chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Writer chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
CatalogueMetadataAwareInterface.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
CHANGELOG.md chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
composer.json chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
DataCollectorTranslator.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
IdentityTranslator.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
LICENSE chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
LocaleSwitcher.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
LoggingTranslator.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
MessageCatalogue.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
MessageCatalogueInterface.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
MetadataAwareInterface.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
PseudoLocalizationTranslator.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
README.md chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
StaticMessage.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
TranslatableMessage.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
Translator.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
TranslatorBag.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +00:00
TranslatorBagInterface.php chore: commit vendor directory for fully offline builds 2026-06-28 18:08:40 +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