jun 241d78f74c first commit 1 týždeň pred
..
Catalogue 241d78f74c first commit 1 týždeň pred
Command 241d78f74c first commit 1 týždeň pred
DataCollector 241d78f74c first commit 1 týždeň pred
DependencyInjection 241d78f74c first commit 1 týždeň pred
Dumper 241d78f74c first commit 1 týždeň pred
Exception 241d78f74c first commit 1 týždeň pred
Extractor 241d78f74c first commit 1 týždeň pred
Formatter 241d78f74c first commit 1 týždeň pred
Loader 241d78f74c first commit 1 týždeň pred
Provider 241d78f74c first commit 1 týždeň pred
Reader 241d78f74c first commit 1 týždeň pred
Resources 241d78f74c first commit 1 týždeň pred
Test 241d78f74c first commit 1 týždeň pred
Util 241d78f74c first commit 1 týždeň pred
Writer 241d78f74c first commit 1 týždeň pred
CHANGELOG.md 241d78f74c first commit 1 týždeň pred
DataCollectorTranslator.php 241d78f74c first commit 1 týždeň pred
IdentityTranslator.php 241d78f74c first commit 1 týždeň pred
LICENSE 241d78f74c first commit 1 týždeň pred
LoggingTranslator.php 241d78f74c first commit 1 týždeň pred
MessageCatalogue.php 241d78f74c first commit 1 týždeň pred
MessageCatalogueInterface.php 241d78f74c first commit 1 týždeň pred
MetadataAwareInterface.php 241d78f74c first commit 1 týždeň pred
PseudoLocalizationTranslator.php 241d78f74c first commit 1 týždeň pred
README.md 241d78f74c first commit 1 týždeň pred
TranslatableMessage.php 241d78f74c first commit 1 týždeň pred
Translator.php 241d78f74c first commit 1 týždeň pred
TranslatorBag.php 241d78f74c first commit 1 týždeň pred
TranslatorBagInterface.php 241d78f74c first commit 1 týždeň pred
composer.json 241d78f74c first commit 1 týždeň pred

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