lizhen_gitee 414078cafe vendor加入版本库 1 gadu atpakaļ
..
Catalogue 414078cafe vendor加入版本库 1 gadu atpakaļ
Command 414078cafe vendor加入版本库 1 gadu atpakaļ
DataCollector 414078cafe vendor加入版本库 1 gadu atpakaļ
DependencyInjection 414078cafe vendor加入版本库 1 gadu atpakaļ
Dumper 414078cafe vendor加入版本库 1 gadu atpakaļ
Exception 414078cafe vendor加入版本库 1 gadu atpakaļ
Extractor 414078cafe vendor加入版本库 1 gadu atpakaļ
Formatter 414078cafe vendor加入版本库 1 gadu atpakaļ
Loader 414078cafe vendor加入版本库 1 gadu atpakaļ
Provider 414078cafe vendor加入版本库 1 gadu atpakaļ
Reader 414078cafe vendor加入版本库 1 gadu atpakaļ
Resources 414078cafe vendor加入版本库 1 gadu atpakaļ
Test 414078cafe vendor加入版本库 1 gadu atpakaļ
Util 414078cafe vendor加入版本库 1 gadu atpakaļ
Writer 414078cafe vendor加入版本库 1 gadu atpakaļ
CHANGELOG.md 414078cafe vendor加入版本库 1 gadu atpakaļ
DataCollectorTranslator.php 414078cafe vendor加入版本库 1 gadu atpakaļ
IdentityTranslator.php 414078cafe vendor加入版本库 1 gadu atpakaļ
LICENSE 414078cafe vendor加入版本库 1 gadu atpakaļ
LoggingTranslator.php 414078cafe vendor加入版本库 1 gadu atpakaļ
MessageCatalogue.php 414078cafe vendor加入版本库 1 gadu atpakaļ
MessageCatalogueInterface.php 414078cafe vendor加入版本库 1 gadu atpakaļ
MetadataAwareInterface.php 414078cafe vendor加入版本库 1 gadu atpakaļ
PseudoLocalizationTranslator.php 414078cafe vendor加入版本库 1 gadu atpakaļ
README.md 414078cafe vendor加入版本库 1 gadu atpakaļ
TranslatableMessage.php 414078cafe vendor加入版本库 1 gadu atpakaļ
Translator.php 414078cafe vendor加入版本库 1 gadu atpakaļ
TranslatorBag.php 414078cafe vendor加入版本库 1 gadu atpakaļ
TranslatorBagInterface.php 414078cafe vendor加入版本库 1 gadu atpakaļ
composer.json 414078cafe vendor加入版本库 1 gadu atpakaļ

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