caipan_shop_admin/vendor/symfony/translation
wangxinglong 4aab76d038 setter 2022-05-25 19:35:57 +08:00
..
Catalogue setter 2022-05-25 19:35:57 +08:00
Command setter 2022-05-25 19:35:57 +08:00
DataCollector setter 2022-05-25 19:35:57 +08:00
DependencyInjection setter 2022-05-25 19:35:57 +08:00
Dumper setter 2022-05-25 19:35:57 +08:00
Exception setter 2022-05-25 19:35:57 +08:00
Extractor setter 2022-05-25 19:35:57 +08:00
Formatter setter 2022-05-25 19:35:57 +08:00
Loader setter 2022-05-25 19:35:57 +08:00
Provider setter 2022-05-25 19:35:57 +08:00
Reader setter 2022-05-25 19:35:57 +08:00
Resources setter 2022-05-25 19:35:57 +08:00
Test setter 2022-05-25 19:35:57 +08:00
Util setter 2022-05-25 19:35:57 +08:00
Writer setter 2022-05-25 19:35:57 +08:00
CHANGELOG.md setter 2022-05-25 19:35:57 +08:00
DataCollectorTranslator.php setter 2022-05-25 19:35:57 +08:00
IdentityTranslator.php setter 2022-05-25 19:35:57 +08:00
LICENSE setter 2022-05-25 19:35:57 +08:00
LoggingTranslator.php setter 2022-05-25 19:35:57 +08:00
MessageCatalogue.php setter 2022-05-25 19:35:57 +08:00
MessageCatalogueInterface.php setter 2022-05-25 19:35:57 +08:00
MetadataAwareInterface.php setter 2022-05-25 19:35:57 +08:00
PseudoLocalizationTranslator.php setter 2022-05-25 19:35:57 +08:00
README.md setter 2022-05-25 19:35:57 +08:00
TranslatableMessage.php setter 2022-05-25 19:35:57 +08:00
Translator.php setter 2022-05-25 19:35:57 +08:00
TranslatorBag.php setter 2022-05-25 19:35:57 +08:00
TranslatorBagInterface.php setter 2022-05-25 19:35:57 +08:00
composer.json setter 2022-05-25 19:35:57 +08:00

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