1557492053 0dcda7d71b fix bug пре 1 година
..
Catalogue 0dcda7d71b fix bug пре 1 година
Command 0dcda7d71b fix bug пре 1 година
DataCollector 0dcda7d71b fix bug пре 1 година
DependencyInjection 0dcda7d71b fix bug пре 1 година
Dumper 0dcda7d71b fix bug пре 1 година
Exception 0dcda7d71b fix bug пре 1 година
Extractor 0dcda7d71b fix bug пре 1 година
Formatter 0dcda7d71b fix bug пре 1 година
Loader 0dcda7d71b fix bug пре 1 година
Provider 0dcda7d71b fix bug пре 1 година
Reader 0dcda7d71b fix bug пре 1 година
Resources 0dcda7d71b fix bug пре 1 година
Test 0dcda7d71b fix bug пре 1 година
Util 0dcda7d71b fix bug пре 1 година
Writer 0dcda7d71b fix bug пре 1 година
CHANGELOG.md 0dcda7d71b fix bug пре 1 година
DataCollectorTranslator.php 0dcda7d71b fix bug пре 1 година
IdentityTranslator.php 0dcda7d71b fix bug пре 1 година
LICENSE 0dcda7d71b fix bug пре 1 година
LoggingTranslator.php 0dcda7d71b fix bug пре 1 година
MessageCatalogue.php 0dcda7d71b fix bug пре 1 година
MessageCatalogueInterface.php 0dcda7d71b fix bug пре 1 година
MetadataAwareInterface.php 0dcda7d71b fix bug пре 1 година
PseudoLocalizationTranslator.php 0dcda7d71b fix bug пре 1 година
README.md 0dcda7d71b fix bug пре 1 година
TranslatableMessage.php 0dcda7d71b fix bug пре 1 година
Translator.php 0dcda7d71b fix bug пре 1 година
TranslatorBag.php 0dcda7d71b fix bug пре 1 година
TranslatorBagInterface.php 0dcda7d71b fix bug пре 1 година
composer.json 0dcda7d71b fix bug пре 1 година

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