test_lgq/niucloud/vendor/symfony/translation
2024-01-24 17:36:08 +08:00
..
Catalogue 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Command 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
DataCollector 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
DependencyInjection 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Dumper 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Exception 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Extractor 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Formatter 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Loader 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Provider 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Reader 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Resources 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Test 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Util 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Writer 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
CHANGELOG.md 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
composer.json 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
DataCollectorTranslator.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
IdentityTranslator.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
LICENSE 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
LoggingTranslator.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
MessageCatalogue.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
MessageCatalogueInterface.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
MetadataAwareInterface.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
PseudoLocalizationTranslator.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
README.md 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
TranslatableMessage.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
Translator.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
TranslatorBag.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00
TranslatorBagInterface.php 🎉 init(初始化): 2024-01-24 17:36:08 +08:00

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