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

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