devn00b c2c6bf7610 Initial Upload of Bot 1 anno fa
..
Catalogue c2c6bf7610 Initial Upload of Bot 1 anno fa
Command c2c6bf7610 Initial Upload of Bot 1 anno fa
DataCollector c2c6bf7610 Initial Upload of Bot 1 anno fa
DependencyInjection c2c6bf7610 Initial Upload of Bot 1 anno fa
Dumper c2c6bf7610 Initial Upload of Bot 1 anno fa
Exception c2c6bf7610 Initial Upload of Bot 1 anno fa
Extractor c2c6bf7610 Initial Upload of Bot 1 anno fa
Formatter c2c6bf7610 Initial Upload of Bot 1 anno fa
Loader c2c6bf7610 Initial Upload of Bot 1 anno fa
Provider c2c6bf7610 Initial Upload of Bot 1 anno fa
Reader c2c6bf7610 Initial Upload of Bot 1 anno fa
Resources c2c6bf7610 Initial Upload of Bot 1 anno fa
Test c2c6bf7610 Initial Upload of Bot 1 anno fa
Util c2c6bf7610 Initial Upload of Bot 1 anno fa
Writer c2c6bf7610 Initial Upload of Bot 1 anno fa
CHANGELOG.md c2c6bf7610 Initial Upload of Bot 1 anno fa
DataCollectorTranslator.php c2c6bf7610 Initial Upload of Bot 1 anno fa
IdentityTranslator.php c2c6bf7610 Initial Upload of Bot 1 anno fa
LICENSE c2c6bf7610 Initial Upload of Bot 1 anno fa
LoggingTranslator.php c2c6bf7610 Initial Upload of Bot 1 anno fa
MessageCatalogue.php c2c6bf7610 Initial Upload of Bot 1 anno fa
MessageCatalogueInterface.php c2c6bf7610 Initial Upload of Bot 1 anno fa
MetadataAwareInterface.php c2c6bf7610 Initial Upload of Bot 1 anno fa
PseudoLocalizationTranslator.php c2c6bf7610 Initial Upload of Bot 1 anno fa
README.md c2c6bf7610 Initial Upload of Bot 1 anno fa
TranslatableMessage.php c2c6bf7610 Initial Upload of Bot 1 anno fa
Translator.php c2c6bf7610 Initial Upload of Bot 1 anno fa
TranslatorBag.php c2c6bf7610 Initial Upload of Bot 1 anno fa
TranslatorBagInterface.php c2c6bf7610 Initial Upload of Bot 1 anno fa
composer.json c2c6bf7610 Initial Upload of Bot 1 anno fa

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