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

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