xieruidong aa6a296225 merchant 2 năm trước cách đây
..
Catalogue a92a1834a2 1 2 năm trước cách đây
Command a92a1834a2 1 2 năm trước cách đây
DataCollector a92a1834a2 1 2 năm trước cách đây
DependencyInjection a92a1834a2 1 2 năm trước cách đây
Dumper a92a1834a2 1 2 năm trước cách đây
Exception a92a1834a2 1 2 năm trước cách đây
Extractor a92a1834a2 1 2 năm trước cách đây
Formatter a92a1834a2 1 2 năm trước cách đây
Loader a92a1834a2 1 2 năm trước cách đây
Provider a92a1834a2 1 2 năm trước cách đây
Reader a92a1834a2 1 2 năm trước cách đây
Resources aa6a296225 merchant 2 năm trước cách đây
Test a92a1834a2 1 2 năm trước cách đây
Util a92a1834a2 1 2 năm trước cách đây
Writer a92a1834a2 1 2 năm trước cách đây
CHANGELOG.md a92a1834a2 1 2 năm trước cách đây
DataCollectorTranslator.php a92a1834a2 1 2 năm trước cách đây
IdentityTranslator.php a92a1834a2 1 2 năm trước cách đây
LICENSE aa6a296225 merchant 2 năm trước cách đây
LoggingTranslator.php a92a1834a2 1 2 năm trước cách đây
MessageCatalogue.php a92a1834a2 1 2 năm trước cách đây
MessageCatalogueInterface.php a92a1834a2 1 2 năm trước cách đây
MetadataAwareInterface.php a92a1834a2 1 2 năm trước cách đây
PseudoLocalizationTranslator.php a92a1834a2 1 2 năm trước cách đây
README.md a92a1834a2 1 2 năm trước cách đây
TranslatableMessage.php a92a1834a2 1 2 năm trước cách đây
Translator.php a92a1834a2 1 2 năm trước cách đây
TranslatorBag.php a92a1834a2 1 2 năm trước cách đây
TranslatorBagInterface.php a92a1834a2 1 2 năm trước cách đây
composer.json a92a1834a2 1 2 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 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