zhangdehua 898e06e04e first commit 1 năm trước cách đây
..
Catalogue 898e06e04e first commit 1 năm trước cách đây
Command 898e06e04e first commit 1 năm trước cách đây
DataCollector 898e06e04e first commit 1 năm trước cách đây
DependencyInjection 898e06e04e first commit 1 năm trước cách đây
Dumper 898e06e04e first commit 1 năm trước cách đây
Exception 898e06e04e first commit 1 năm trước cách đây
Extractor 898e06e04e first commit 1 năm trước cách đây
Formatter 898e06e04e first commit 1 năm trước cách đây
Loader 898e06e04e first commit 1 năm trước cách đây
Provider 898e06e04e first commit 1 năm trước cách đây
Reader 898e06e04e first commit 1 năm trước cách đây
Resources 898e06e04e first commit 1 năm trước cách đây
Test 898e06e04e first commit 1 năm trước cách đây
Util 898e06e04e first commit 1 năm trước cách đây
Writer 898e06e04e first commit 1 năm trước cách đây
CHANGELOG.md 898e06e04e first commit 1 năm trước cách đây
CatalogueMetadataAwareInterface.php 898e06e04e first commit 1 năm trước cách đây
DataCollectorTranslator.php 898e06e04e first commit 1 năm trước cách đây
IdentityTranslator.php 898e06e04e first commit 1 năm trước cách đây
LICENSE 898e06e04e first commit 1 năm trước cách đây
LocaleSwitcher.php 898e06e04e first commit 1 năm trước cách đây
LoggingTranslator.php 898e06e04e first commit 1 năm trước cách đây
MessageCatalogue.php 898e06e04e first commit 1 năm trước cách đây
MessageCatalogueInterface.php 898e06e04e first commit 1 năm trước cách đây
MetadataAwareInterface.php 898e06e04e first commit 1 năm trước cách đây
PseudoLocalizationTranslator.php 898e06e04e first commit 1 năm trước cách đây
README.md 898e06e04e first commit 1 năm trước cách đây
TranslatableMessage.php 898e06e04e first commit 1 năm trước cách đây
Translator.php 898e06e04e first commit 1 năm trước cách đây
TranslatorBag.php 898e06e04e first commit 1 năm trước cách đây
TranslatorBagInterface.php 898e06e04e first commit 1 năm trước cách đây
composer.json 898e06e04e first commit 1 năm trước cách đây

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 6.1 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.

Help Symfony by sponsoring its development!

Resources