unknown abd0e89a86 second commit 2 месяцев назад
..
Catalogue abd0e89a86 second commit 2 месяцев назад
Command abd0e89a86 second commit 2 месяцев назад
DataCollector abd0e89a86 second commit 2 месяцев назад
DependencyInjection abd0e89a86 second commit 2 месяцев назад
Dumper abd0e89a86 second commit 2 месяцев назад
Exception abd0e89a86 second commit 2 месяцев назад
Extractor abd0e89a86 second commit 2 месяцев назад
Formatter abd0e89a86 second commit 2 месяцев назад
Loader abd0e89a86 second commit 2 месяцев назад
Provider abd0e89a86 second commit 2 месяцев назад
Reader abd0e89a86 second commit 2 месяцев назад
Resources abd0e89a86 second commit 2 месяцев назад
Test abd0e89a86 second commit 2 месяцев назад
Util abd0e89a86 second commit 2 месяцев назад
Writer abd0e89a86 second commit 2 месяцев назад
CHANGELOG.md abd0e89a86 second commit 2 месяцев назад
CatalogueMetadataAwareInterface.php abd0e89a86 second commit 2 месяцев назад
DataCollectorTranslator.php abd0e89a86 second commit 2 месяцев назад
IdentityTranslator.php abd0e89a86 second commit 2 месяцев назад
LICENSE abd0e89a86 second commit 2 месяцев назад
LocaleSwitcher.php abd0e89a86 second commit 2 месяцев назад
LoggingTranslator.php abd0e89a86 second commit 2 месяцев назад
MessageCatalogue.php abd0e89a86 second commit 2 месяцев назад
MessageCatalogueInterface.php abd0e89a86 second commit 2 месяцев назад
MetadataAwareInterface.php abd0e89a86 second commit 2 месяцев назад
PseudoLocalizationTranslator.php abd0e89a86 second commit 2 месяцев назад
README.md abd0e89a86 second commit 2 месяцев назад
StaticMessage.php abd0e89a86 second commit 2 месяцев назад
TranslatableMessage.php abd0e89a86 second commit 2 месяцев назад
Translator.php abd0e89a86 second commit 2 месяцев назад
TranslatorBag.php abd0e89a86 second commit 2 месяцев назад
TranslatorBagInterface.php abd0e89a86 second commit 2 месяцев назад
composer.json abd0e89a86 second commit 2 месяцев назад

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