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

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