王大坤 577e175234 更新google 1 năm trước cách đây
..
Catalogue 577e175234 更新google 1 năm trước cách đây
Command 577e175234 更新google 1 năm trước cách đây
DataCollector 577e175234 更新google 1 năm trước cách đây
DependencyInjection 577e175234 更新google 1 năm trước cách đây
Dumper 577e175234 更新google 1 năm trước cách đây
Exception 577e175234 更新google 1 năm trước cách đây
Extractor 577e175234 更新google 1 năm trước cách đây
Formatter 577e175234 更新google 1 năm trước cách đây
Loader 577e175234 更新google 1 năm trước cách đây
Provider 577e175234 更新google 1 năm trước cách đây
Reader 577e175234 更新google 1 năm trước cách đây
Resources 577e175234 更新google 1 năm trước cách đây
Test 577e175234 更新google 1 năm trước cách đây
Util 577e175234 更新google 1 năm trước cách đây
Writer 4122133d42 update 1 năm trước cách đây
CHANGELOG.md 577e175234 更新google 1 năm trước cách đây
CatalogueMetadataAwareInterface.php 577e175234 更新google 1 năm trước cách đây
DataCollectorTranslator.php 577e175234 更新google 1 năm trước cách đây
IdentityTranslator.php 4122133d42 update 1 năm trước cách đây
LICENSE 577e175234 更新google 1 năm trước cách đây
LocaleSwitcher.php 577e175234 更新google 1 năm trước cách đây
LoggingTranslator.php 577e175234 更新google 1 năm trước cách đây
MessageCatalogue.php 577e175234 更新google 1 năm trước cách đây
MessageCatalogueInterface.php 577e175234 更新google 1 năm trước cách đây
MetadataAwareInterface.php 577e175234 更新google 1 năm trước cách đây
PseudoLocalizationTranslator.php 577e175234 更新google 1 năm trước cách đây
README.md 577e175234 更新google 1 năm trước cách đây
TranslatableMessage.php 4122133d42 update 1 năm trước cách đây
Translator.php 577e175234 更新google 1 năm trước cách đây
TranslatorBag.php 577e175234 更新google 1 năm trước cách đây
TranslatorBagInterface.php 4122133d42 update 1 năm trước cách đây
composer.json 577e175234 更新google 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.2 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