jun 241d78f74c first commit 4 dni temu
..
Catalogue 241d78f74c first commit 4 dni temu
Command 241d78f74c first commit 4 dni temu
DataCollector 241d78f74c first commit 4 dni temu
DependencyInjection 241d78f74c first commit 4 dni temu
Dumper 241d78f74c first commit 4 dni temu
Exception 241d78f74c first commit 4 dni temu
Extractor 241d78f74c first commit 4 dni temu
Formatter 241d78f74c first commit 4 dni temu
Loader 241d78f74c first commit 4 dni temu
Provider 241d78f74c first commit 4 dni temu
Reader 241d78f74c first commit 4 dni temu
Resources 241d78f74c first commit 4 dni temu
Test 241d78f74c first commit 4 dni temu
Util 241d78f74c first commit 4 dni temu
Writer 241d78f74c first commit 4 dni temu
CHANGELOG.md 241d78f74c first commit 4 dni temu
DataCollectorTranslator.php 241d78f74c first commit 4 dni temu
IdentityTranslator.php 241d78f74c first commit 4 dni temu
LICENSE 241d78f74c first commit 4 dni temu
LoggingTranslator.php 241d78f74c first commit 4 dni temu
MessageCatalogue.php 241d78f74c first commit 4 dni temu
MessageCatalogueInterface.php 241d78f74c first commit 4 dni temu
MetadataAwareInterface.php 241d78f74c first commit 4 dni temu
PseudoLocalizationTranslator.php 241d78f74c first commit 4 dni temu
README.md 241d78f74c first commit 4 dni temu
TranslatableMessage.php 241d78f74c first commit 4 dni temu
Translator.php 241d78f74c first commit 4 dni temu
TranslatorBag.php 241d78f74c first commit 4 dni temu
TranslatorBagInterface.php 241d78f74c first commit 4 dni temu
composer.json 241d78f74c first commit 4 dni temu

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