unknown abd0e89a86 second commit 1 miesiąc temu
..
Catalogue abd0e89a86 second commit 1 miesiąc temu
Command abd0e89a86 second commit 1 miesiąc temu
DataCollector abd0e89a86 second commit 1 miesiąc temu
DependencyInjection abd0e89a86 second commit 1 miesiąc temu
Dumper abd0e89a86 second commit 1 miesiąc temu
Exception abd0e89a86 second commit 1 miesiąc temu
Extractor abd0e89a86 second commit 1 miesiąc temu
Formatter abd0e89a86 second commit 1 miesiąc temu
Loader abd0e89a86 second commit 1 miesiąc temu
Provider abd0e89a86 second commit 1 miesiąc temu
Reader abd0e89a86 second commit 1 miesiąc temu
Resources abd0e89a86 second commit 1 miesiąc temu
Test abd0e89a86 second commit 1 miesiąc temu
Util abd0e89a86 second commit 1 miesiąc temu
Writer abd0e89a86 second commit 1 miesiąc temu
CHANGELOG.md abd0e89a86 second commit 1 miesiąc temu
CatalogueMetadataAwareInterface.php abd0e89a86 second commit 1 miesiąc temu
DataCollectorTranslator.php abd0e89a86 second commit 1 miesiąc temu
IdentityTranslator.php abd0e89a86 second commit 1 miesiąc temu
LICENSE abd0e89a86 second commit 1 miesiąc temu
LocaleSwitcher.php abd0e89a86 second commit 1 miesiąc temu
LoggingTranslator.php abd0e89a86 second commit 1 miesiąc temu
MessageCatalogue.php abd0e89a86 second commit 1 miesiąc temu
MessageCatalogueInterface.php abd0e89a86 second commit 1 miesiąc temu
MetadataAwareInterface.php abd0e89a86 second commit 1 miesiąc temu
PseudoLocalizationTranslator.php abd0e89a86 second commit 1 miesiąc temu
README.md abd0e89a86 second commit 1 miesiąc temu
StaticMessage.php abd0e89a86 second commit 1 miesiąc temu
TranslatableMessage.php abd0e89a86 second commit 1 miesiąc temu
Translator.php abd0e89a86 second commit 1 miesiąc temu
TranslatorBag.php abd0e89a86 second commit 1 miesiąc temu
TranslatorBagInterface.php abd0e89a86 second commit 1 miesiąc temu
composer.json abd0e89a86 second commit 1 miesiąc 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