meraproject/vendor/symfony/translation
keboss-m 5c21d25d45 Initial commit: Merakomis portal, Docker stack and user-reader API.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-24 11:04:05 +03:00
..
Catalogue Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Command Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
DataCollector Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
DependencyInjection Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Dumper Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Exception Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Extractor Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Formatter Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Loader Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Provider Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Reader Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Resources Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Test Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Util Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Writer Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
CHANGELOG.md Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
composer.json Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
DataCollectorTranslator.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
IdentityTranslator.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
LICENSE Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
LoggingTranslator.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
MessageCatalogue.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
MessageCatalogueInterface.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
MetadataAwareInterface.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
PseudoLocalizationTranslator.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
README.md Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
TranslatableMessage.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
Translator.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
TranslatorBag.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03:00
TranslatorBagInterface.php Initial commit: Merakomis portal, Docker stack and user-reader API. 2026-06-24 11:04:05 +03: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 5.4/6.0 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.
  • Lokalise, a continuous localization and translation management platform that integrates into your development workflow so you can ship localized products, faster.

Help Symfony by sponsoring its development!

Resources