urban 02fbfd43e2 codes commit 3 minggu lalu
..
Catalogue 02fbfd43e2 codes commit 3 minggu lalu
Command 02fbfd43e2 codes commit 3 minggu lalu
DataCollector 02fbfd43e2 codes commit 3 minggu lalu
DependencyInjection 02fbfd43e2 codes commit 3 minggu lalu
Dumper 02fbfd43e2 codes commit 3 minggu lalu
Exception 02fbfd43e2 codes commit 3 minggu lalu
Extractor 02fbfd43e2 codes commit 3 minggu lalu
Formatter 02fbfd43e2 codes commit 3 minggu lalu
Loader 02fbfd43e2 codes commit 3 minggu lalu
Provider 02fbfd43e2 codes commit 3 minggu lalu
Reader 02fbfd43e2 codes commit 3 minggu lalu
Resources 02fbfd43e2 codes commit 3 minggu lalu
Test 02fbfd43e2 codes commit 3 minggu lalu
Util 02fbfd43e2 codes commit 3 minggu lalu
Writer 02fbfd43e2 codes commit 3 minggu lalu
CHANGELOG.md 02fbfd43e2 codes commit 3 minggu lalu
DataCollectorTranslator.php 02fbfd43e2 codes commit 3 minggu lalu
IdentityTranslator.php 02fbfd43e2 codes commit 3 minggu lalu
LICENSE 02fbfd43e2 codes commit 3 minggu lalu
LoggingTranslator.php 02fbfd43e2 codes commit 3 minggu lalu
MessageCatalogue.php 02fbfd43e2 codes commit 3 minggu lalu
MessageCatalogueInterface.php 02fbfd43e2 codes commit 3 minggu lalu
MetadataAwareInterface.php 02fbfd43e2 codes commit 3 minggu lalu
PseudoLocalizationTranslator.php 02fbfd43e2 codes commit 3 minggu lalu
README.md 02fbfd43e2 codes commit 3 minggu lalu
TranslatableMessage.php 02fbfd43e2 codes commit 3 minggu lalu
Translator.php 02fbfd43e2 codes commit 3 minggu lalu
TranslatorBag.php 02fbfd43e2 codes commit 3 minggu lalu
TranslatorBagInterface.php 02fbfd43e2 codes commit 3 minggu lalu
composer.json 02fbfd43e2 codes commit 3 minggu lalu

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