Heimdall/vendor/symfony/translation
2022-11-14 21:39:27 +01:00
..
Catalogue reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Command reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
DataCollector reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
DependencyInjection reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Dumper reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Exception reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Extractor reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Formatter reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Loader reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Provider reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Reader reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Resources reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Test reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Util reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Writer reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
CHANGELOG.md reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
composer.json reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
DataCollectorTranslator.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01: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 reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
MessageCatalogue.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
MessageCatalogueInterface.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
MetadataAwareInterface.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
PseudoLocalizationTranslator.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
README.md reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
TranslatableMessage.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
Translator.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
TranslatorBag.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01:00
TranslatorBagInterface.php reinstall dependencies on php 7.4 2022-11-14 21:39:27 +01: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