caisse-bliss/vendor/symfony/translation
Tykayn 62f061a882 add version symfony flex 6 2023-06-19 12:13:30 +02:00
..
Catalogue add version symfony flex 6 2023-06-19 12:13:30 +02:00
Command add version symfony flex 6 2023-06-19 12:13:30 +02:00
DataCollector add version symfony flex 6 2023-06-19 12:13:30 +02:00
DependencyInjection add version symfony flex 6 2023-06-19 12:13:30 +02:00
Dumper add version symfony flex 6 2023-06-19 12:13:30 +02:00
Exception add version symfony flex 6 2023-06-19 12:13:30 +02:00
Extractor add version symfony flex 6 2023-06-19 12:13:30 +02:00
Formatter add version symfony flex 6 2023-06-19 12:13:30 +02:00
Loader add version symfony flex 6 2023-06-19 12:13:30 +02:00
Provider add version symfony flex 6 2023-06-19 12:13:30 +02:00
Reader add version symfony flex 6 2023-06-19 12:13:30 +02:00
Resources add version symfony flex 6 2023-06-19 12:13:30 +02:00
Test add version symfony flex 6 2023-06-19 12:13:30 +02:00
Util add version symfony flex 6 2023-06-19 12:13:30 +02:00
Writer add version symfony flex 6 2023-06-19 12:13:30 +02:00
CHANGELOG.md add version symfony flex 6 2023-06-19 12:13:30 +02:00
DataCollectorTranslator.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
IdentityTranslator.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
LICENSE add version symfony flex 6 2023-06-19 12:13:30 +02:00
LoggingTranslator.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
MessageCatalogue.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
MessageCatalogueInterface.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
MetadataAwareInterface.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
PseudoLocalizationTranslator.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
README.md add version symfony flex 6 2023-06-19 12:13:30 +02:00
TranslatableMessage.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
Translator.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
TranslatorBag.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
TranslatorBagInterface.php add version symfony flex 6 2023-06-19 12:13:30 +02:00
composer.json add version symfony flex 6 2023-06-19 12:13:30 +02:00

README.md

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