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

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