Kirin 93a3391a21 init 1 gadu atpakaļ
..
Catalogue 93a3391a21 init 1 gadu atpakaļ
Command 93a3391a21 init 1 gadu atpakaļ
DataCollector 93a3391a21 init 1 gadu atpakaļ
DependencyInjection 93a3391a21 init 1 gadu atpakaļ
Dumper 93a3391a21 init 1 gadu atpakaļ
Exception 93a3391a21 init 1 gadu atpakaļ
Extractor 93a3391a21 init 1 gadu atpakaļ
Formatter 93a3391a21 init 1 gadu atpakaļ
Loader 93a3391a21 init 1 gadu atpakaļ
Provider 93a3391a21 init 1 gadu atpakaļ
Reader 93a3391a21 init 1 gadu atpakaļ
Resources 93a3391a21 init 1 gadu atpakaļ
Test 93a3391a21 init 1 gadu atpakaļ
Util 93a3391a21 init 1 gadu atpakaļ
Writer 93a3391a21 init 1 gadu atpakaļ
CHANGELOG.md 93a3391a21 init 1 gadu atpakaļ
DataCollectorTranslator.php 93a3391a21 init 1 gadu atpakaļ
IdentityTranslator.php 93a3391a21 init 1 gadu atpakaļ
LICENSE 93a3391a21 init 1 gadu atpakaļ
LoggingTranslator.php 93a3391a21 init 1 gadu atpakaļ
MessageCatalogue.php 93a3391a21 init 1 gadu atpakaļ
MessageCatalogueInterface.php 93a3391a21 init 1 gadu atpakaļ
MetadataAwareInterface.php 93a3391a21 init 1 gadu atpakaļ
PseudoLocalizationTranslator.php 93a3391a21 init 1 gadu atpakaļ
README.md 93a3391a21 init 1 gadu atpakaļ
TranslatableMessage.php 93a3391a21 init 1 gadu atpakaļ
Translator.php 93a3391a21 init 1 gadu atpakaļ
TranslatorBag.php 93a3391a21 init 1 gadu atpakaļ
TranslatorBagInterface.php 93a3391a21 init 1 gadu atpakaļ
composer.json 93a3391a21 init 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