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

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