unknown abd0e89a86 second commit 1 mesiac pred
..
Catalogue abd0e89a86 second commit 1 mesiac pred
Command abd0e89a86 second commit 1 mesiac pred
DataCollector abd0e89a86 second commit 1 mesiac pred
DependencyInjection abd0e89a86 second commit 1 mesiac pred
Dumper abd0e89a86 second commit 1 mesiac pred
Exception abd0e89a86 second commit 1 mesiac pred
Extractor abd0e89a86 second commit 1 mesiac pred
Formatter abd0e89a86 second commit 1 mesiac pred
Loader abd0e89a86 second commit 1 mesiac pred
Provider abd0e89a86 second commit 1 mesiac pred
Reader abd0e89a86 second commit 1 mesiac pred
Resources abd0e89a86 second commit 1 mesiac pred
Test abd0e89a86 second commit 1 mesiac pred
Util abd0e89a86 second commit 1 mesiac pred
Writer abd0e89a86 second commit 1 mesiac pred
CHANGELOG.md abd0e89a86 second commit 1 mesiac pred
CatalogueMetadataAwareInterface.php abd0e89a86 second commit 1 mesiac pred
DataCollectorTranslator.php abd0e89a86 second commit 1 mesiac pred
IdentityTranslator.php abd0e89a86 second commit 1 mesiac pred
LICENSE abd0e89a86 second commit 1 mesiac pred
LocaleSwitcher.php abd0e89a86 second commit 1 mesiac pred
LoggingTranslator.php abd0e89a86 second commit 1 mesiac pred
MessageCatalogue.php abd0e89a86 second commit 1 mesiac pred
MessageCatalogueInterface.php abd0e89a86 second commit 1 mesiac pred
MetadataAwareInterface.php abd0e89a86 second commit 1 mesiac pred
PseudoLocalizationTranslator.php abd0e89a86 second commit 1 mesiac pred
README.md abd0e89a86 second commit 1 mesiac pred
StaticMessage.php abd0e89a86 second commit 1 mesiac pred
TranslatableMessage.php abd0e89a86 second commit 1 mesiac pred
Translator.php abd0e89a86 second commit 1 mesiac pred
TranslatorBag.php abd0e89a86 second commit 1 mesiac pred
TranslatorBagInterface.php abd0e89a86 second commit 1 mesiac pred
composer.json abd0e89a86 second commit 1 mesiac 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

Help Symfony by sponsoring its development!

Resources