unknown a0372a28bb second commit 13 órája
..
Catalogue a0372a28bb second commit 13 órája
Command a0372a28bb second commit 13 órája
DataCollector a0372a28bb second commit 13 órája
DependencyInjection a0372a28bb second commit 13 órája
Dumper a0372a28bb second commit 13 órája
Exception a0372a28bb second commit 13 órája
Extractor a0372a28bb second commit 13 órája
Formatter a0372a28bb second commit 13 órája
Loader a0372a28bb second commit 13 órája
Provider a0372a28bb second commit 13 órája
Reader a0372a28bb second commit 13 órája
Resources a0372a28bb second commit 13 órája
Test a0372a28bb second commit 13 órája
Util a0372a28bb second commit 13 órája
Writer a0372a28bb second commit 13 órája
CHANGELOG.md a0372a28bb second commit 13 órája
CatalogueMetadataAwareInterface.php a0372a28bb second commit 13 órája
DataCollectorTranslator.php a0372a28bb second commit 13 órája
IdentityTranslator.php a0372a28bb second commit 13 órája
LICENSE a0372a28bb second commit 13 órája
LocaleSwitcher.php a0372a28bb second commit 13 órája
LoggingTranslator.php a0372a28bb second commit 13 órája
MessageCatalogue.php a0372a28bb second commit 13 órája
MessageCatalogueInterface.php a0372a28bb second commit 13 órája
MetadataAwareInterface.php a0372a28bb second commit 13 órája
PseudoLocalizationTranslator.php a0372a28bb second commit 13 órája
README.md a0372a28bb second commit 13 órája
StaticMessage.php a0372a28bb second commit 13 órája
TranslatableMessage.php a0372a28bb second commit 13 órája
Translator.php a0372a28bb second commit 13 órája
TranslatorBag.php a0372a28bb second commit 13 órája
TranslatorBagInterface.php a0372a28bb second commit 13 órája
composer.json a0372a28bb second commit 13 órája

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