caipan_shop_admin/vendor/symfony/translation
wangxinglong 050bc120bd editmode 2022-06-08 09:30:35 +00:00
..
Catalogue editmode 2022-06-08 09:30:35 +00:00
Command editmode 2022-06-08 09:30:35 +00:00
DataCollector editmode 2022-06-08 09:30:35 +00:00
DependencyInjection editmode 2022-06-08 09:30:35 +00:00
Dumper editmode 2022-06-08 09:30:35 +00:00
Exception editmode 2022-06-08 09:30:35 +00:00
Extractor editmode 2022-06-08 09:30:35 +00:00
Formatter editmode 2022-06-08 09:30:35 +00:00
Loader editmode 2022-06-08 09:30:35 +00:00
Provider editmode 2022-06-08 09:30:35 +00:00
Reader editmode 2022-06-08 09:30:35 +00:00
Resources editmode 2022-06-08 09:30:35 +00:00
Test editmode 2022-06-08 09:30:35 +00:00
Util editmode 2022-06-08 09:30:35 +00:00
Writer editmode 2022-06-08 09:30:35 +00:00
CHANGELOG.md editmode 2022-06-08 09:30:35 +00:00
DataCollectorTranslator.php editmode 2022-06-08 09:30:35 +00:00
IdentityTranslator.php editmode 2022-06-08 09:30:35 +00:00
LICENSE editmode 2022-06-08 09:30:35 +00:00
LoggingTranslator.php editmode 2022-06-08 09:30:35 +00:00
MessageCatalogue.php editmode 2022-06-08 09:30:35 +00:00
MessageCatalogueInterface.php editmode 2022-06-08 09:30:35 +00:00
MetadataAwareInterface.php editmode 2022-06-08 09:30:35 +00:00
PseudoLocalizationTranslator.php editmode 2022-06-08 09:30:35 +00:00
README.md editmode 2022-06-08 09:30:35 +00:00
TranslatableMessage.php editmode 2022-06-08 09:30:35 +00:00
Translator.php editmode 2022-06-08 09:30:35 +00:00
TranslatorBag.php editmode 2022-06-08 09:30:35 +00:00
TranslatorBagInterface.php editmode 2022-06-08 09:30:35 +00:00
composer.json editmode 2022-06-08 09:30:35 +00: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