1
0
root f4b10b55a0 Initial commit 1 сар өмнө
..
Catalogue f4b10b55a0 Initial commit 1 сар өмнө
Command f4b10b55a0 Initial commit 1 сар өмнө
DataCollector f4b10b55a0 Initial commit 1 сар өмнө
DependencyInjection f4b10b55a0 Initial commit 1 сар өмнө
Dumper f4b10b55a0 Initial commit 1 сар өмнө
Exception f4b10b55a0 Initial commit 1 сар өмнө
Extractor f4b10b55a0 Initial commit 1 сар өмнө
Formatter f4b10b55a0 Initial commit 1 сар өмнө
Loader f4b10b55a0 Initial commit 1 сар өмнө
Provider f4b10b55a0 Initial commit 1 сар өмнө
Reader f4b10b55a0 Initial commit 1 сар өмнө
Resources f4b10b55a0 Initial commit 1 сар өмнө
Test f4b10b55a0 Initial commit 1 сар өмнө
Util f4b10b55a0 Initial commit 1 сар өмнө
Writer f4b10b55a0 Initial commit 1 сар өмнө
CHANGELOG.md f4b10b55a0 Initial commit 1 сар өмнө
DataCollectorTranslator.php f4b10b55a0 Initial commit 1 сар өмнө
IdentityTranslator.php f4b10b55a0 Initial commit 1 сар өмнө
LICENSE f4b10b55a0 Initial commit 1 сар өмнө
LoggingTranslator.php f4b10b55a0 Initial commit 1 сар өмнө
MessageCatalogue.php f4b10b55a0 Initial commit 1 сар өмнө
MessageCatalogueInterface.php f4b10b55a0 Initial commit 1 сар өмнө
MetadataAwareInterface.php f4b10b55a0 Initial commit 1 сар өмнө
PseudoLocalizationTranslator.php f4b10b55a0 Initial commit 1 сар өмнө
README.md f4b10b55a0 Initial commit 1 сар өмнө
TranslatableMessage.php f4b10b55a0 Initial commit 1 сар өмнө
Translator.php f4b10b55a0 Initial commit 1 сар өмнө
TranslatorBag.php f4b10b55a0 Initial commit 1 сар өмнө
TranslatorBagInterface.php f4b10b55a0 Initial commit 1 сар өмнө
composer.json f4b10b55a0 Initial commit 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