urban d63a4904f9 trxbot vor 3 Monaten
..
Catalogue d63a4904f9 trxbot vor 3 Monaten
Command d63a4904f9 trxbot vor 3 Monaten
DataCollector d63a4904f9 trxbot vor 3 Monaten
DependencyInjection d63a4904f9 trxbot vor 3 Monaten
Dumper d63a4904f9 trxbot vor 3 Monaten
Exception d63a4904f9 trxbot vor 3 Monaten
Extractor d63a4904f9 trxbot vor 3 Monaten
Formatter d63a4904f9 trxbot vor 3 Monaten
Loader d63a4904f9 trxbot vor 3 Monaten
Provider d63a4904f9 trxbot vor 3 Monaten
Reader d63a4904f9 trxbot vor 3 Monaten
Resources d63a4904f9 trxbot vor 3 Monaten
Test d63a4904f9 trxbot vor 3 Monaten
Util d63a4904f9 trxbot vor 3 Monaten
Writer d63a4904f9 trxbot vor 3 Monaten
CHANGELOG.md d63a4904f9 trxbot vor 3 Monaten
DataCollectorTranslator.php d63a4904f9 trxbot vor 3 Monaten
IdentityTranslator.php d63a4904f9 trxbot vor 3 Monaten
LICENSE d63a4904f9 trxbot vor 3 Monaten
LoggingTranslator.php d63a4904f9 trxbot vor 3 Monaten
MessageCatalogue.php d63a4904f9 trxbot vor 3 Monaten
MessageCatalogueInterface.php d63a4904f9 trxbot vor 3 Monaten
MetadataAwareInterface.php d63a4904f9 trxbot vor 3 Monaten
PseudoLocalizationTranslator.php d63a4904f9 trxbot vor 3 Monaten
README.md d63a4904f9 trxbot vor 3 Monaten
TranslatableMessage.php d63a4904f9 trxbot vor 3 Monaten
Translator.php d63a4904f9 trxbot vor 3 Monaten
TranslatorBag.php d63a4904f9 trxbot vor 3 Monaten
TranslatorBagInterface.php d63a4904f9 trxbot vor 3 Monaten
composer.json d63a4904f9 trxbot vor 3 Monaten

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