Heimdall/vendor/symfony/translation
2022-06-29 13:20:08 +01:00
..
Catalogue Update to laravel 7 2022-03-10 11:54:29 +00:00
Command Update dependencies 2022-06-29 13:20:08 +01:00
DataCollector Update dependencies 2022-06-29 13:20:08 +01:00
DependencyInjection Update to laravel 7 2022-03-10 11:54:29 +00:00
Dumper Update to laravel 7 2022-03-10 11:54:29 +00:00
Exception Update to laravel 7 2022-03-10 11:54:29 +00:00
Extractor Update to laravel 7 2022-03-10 11:54:29 +00:00
Formatter Update to laravel 7 2022-03-10 11:54:29 +00:00
Loader Update to laravel 7 2022-03-10 11:54:29 +00:00
Provider Update to laravel 7 2022-03-10 11:54:29 +00:00
Reader Update to laravel 7 2022-03-10 11:54:29 +00:00
Resources Update dependencies 2022-06-29 13:20:08 +01:00
Test Update to laravel 7 2022-03-10 11:54:29 +00:00
Util Update to laravel 7 2022-03-10 11:54:29 +00:00
Writer Update to laravel 7 2022-03-10 11:54:29 +00:00
CHANGELOG.md Update to laravel 7 2022-03-10 11:54:29 +00:00
composer.json Update to laravel 7 2022-03-10 11:54:29 +00:00
DataCollectorTranslator.php Update to laravel 7 2022-03-10 11:54:29 +00:00
IdentityTranslator.php Update to laravel 7 2022-03-10 11:54:29 +00:00
LICENSE Update to laravel 7 2022-03-10 11:54:29 +00:00
LoggingTranslator.php Update to laravel 7 2022-03-10 11:54:29 +00:00
MessageCatalogue.php Update to laravel 7 2022-03-10 11:54:29 +00:00
MessageCatalogueInterface.php Update to laravel 7 2022-03-10 11:54:29 +00:00
MetadataAwareInterface.php Update to laravel 7 2022-03-10 11:54:29 +00:00
PseudoLocalizationTranslator.php Update to laravel 7 2022-03-10 11:54:29 +00:00
README.md Update to laravel 7 2022-03-10 11:54:29 +00:00
TranslatableMessage.php Update to laravel 7 2022-03-10 11:54:29 +00:00
Translator.php Update to laravel 7 2022-03-10 11:54:29 +00:00
TranslatorBag.php Update dependencies 2022-06-29 13:20:08 +01:00
TranslatorBagInterface.php Update to laravel 7 2022-03-10 11:54:29 +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 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