urban 5cc30c4fee first commit il y a 2 mois
..
Catalogue 5cc30c4fee first commit il y a 2 mois
Command 5cc30c4fee first commit il y a 2 mois
DataCollector 5cc30c4fee first commit il y a 2 mois
DependencyInjection 5cc30c4fee first commit il y a 2 mois
Dumper 5cc30c4fee first commit il y a 2 mois
Exception 5cc30c4fee first commit il y a 2 mois
Extractor 5cc30c4fee first commit il y a 2 mois
Formatter 5cc30c4fee first commit il y a 2 mois
Loader 5cc30c4fee first commit il y a 2 mois
Provider 5cc30c4fee first commit il y a 2 mois
Reader 5cc30c4fee first commit il y a 2 mois
Resources 5cc30c4fee first commit il y a 2 mois
Test 5cc30c4fee first commit il y a 2 mois
Util 5cc30c4fee first commit il y a 2 mois
Writer 5cc30c4fee first commit il y a 2 mois
CHANGELOG.md 5cc30c4fee first commit il y a 2 mois
DataCollectorTranslator.php 5cc30c4fee first commit il y a 2 mois
IdentityTranslator.php 5cc30c4fee first commit il y a 2 mois
LICENSE 5cc30c4fee first commit il y a 2 mois
LoggingTranslator.php 5cc30c4fee first commit il y a 2 mois
MessageCatalogue.php 5cc30c4fee first commit il y a 2 mois
MessageCatalogueInterface.php 5cc30c4fee first commit il y a 2 mois
MetadataAwareInterface.php 5cc30c4fee first commit il y a 2 mois
PseudoLocalizationTranslator.php 5cc30c4fee first commit il y a 2 mois
README.md 5cc30c4fee first commit il y a 2 mois
TranslatableMessage.php 5cc30c4fee first commit il y a 2 mois
Translator.php 5cc30c4fee first commit il y a 2 mois
TranslatorBag.php 5cc30c4fee first commit il y a 2 mois
TranslatorBagInterface.php 5cc30c4fee first commit il y a 2 mois
composer.json 5cc30c4fee first commit il y a 2 mois

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