zxhxx 54f72291b6 add all il y a 5 mois
..
Catalogue 54f72291b6 add all il y a 5 mois
Command 54f72291b6 add all il y a 5 mois
DataCollector 54f72291b6 add all il y a 5 mois
DependencyInjection 54f72291b6 add all il y a 5 mois
Dumper 54f72291b6 add all il y a 5 mois
Exception 54f72291b6 add all il y a 5 mois
Extractor 54f72291b6 add all il y a 5 mois
Formatter 54f72291b6 add all il y a 5 mois
Loader 54f72291b6 add all il y a 5 mois
Provider 54f72291b6 add all il y a 5 mois
Reader 54f72291b6 add all il y a 5 mois
Resources 54f72291b6 add all il y a 5 mois
Test 54f72291b6 add all il y a 5 mois
Util 54f72291b6 add all il y a 5 mois
Writer 54f72291b6 add all il y a 5 mois
CHANGELOG.md 54f72291b6 add all il y a 5 mois
DataCollectorTranslator.php 54f72291b6 add all il y a 5 mois
IdentityTranslator.php 54f72291b6 add all il y a 5 mois
LICENSE 54f72291b6 add all il y a 5 mois
LoggingTranslator.php 54f72291b6 add all il y a 5 mois
MessageCatalogue.php 54f72291b6 add all il y a 5 mois
MessageCatalogueInterface.php 54f72291b6 add all il y a 5 mois
MetadataAwareInterface.php 54f72291b6 add all il y a 5 mois
PseudoLocalizationTranslator.php 54f72291b6 add all il y a 5 mois
README.md 54f72291b6 add all il y a 5 mois
TranslatableMessage.php 54f72291b6 add all il y a 5 mois
Translator.php 54f72291b6 add all il y a 5 mois
TranslatorBag.php 54f72291b6 add all il y a 5 mois
TranslatorBagInterface.php 54f72291b6 add all il y a 5 mois
composer.json 54f72291b6 add all il y a 5 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