wesmiler e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
..
Catalogue e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Command e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
DataCollector e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
DependencyInjection e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Dumper e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Exception e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Extractor e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Formatter e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Loader e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Provider e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Reader e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Resources e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Test e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Util e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Writer e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
CHANGELOG.md e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
DataCollectorTranslator.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
IdentityTranslator.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
LICENSE e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
LoggingTranslator.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
MessageCatalogue.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
MessageCatalogueInterface.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
MetadataAwareInterface.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
PseudoLocalizationTranslator.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
README.md e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
TranslatableMessage.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
Translator.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
TranslatorBag.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
TranslatorBagInterface.php e0690d8424 Weenier 168otc项目部署 0630 пре 3 година
composer.json e0690d8424 Weenier 168otc项目部署 0630 пре 3 година

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