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