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

Help Symfony by sponsoring its development!

Resources