MIF_E31222519/vendor/symfony/translation
MOH. DANI KURNIAWAN SUGIARTO c0b8fc8fee first commit 2025-05-15 16:08:48 +07:00
..
Catalogue first commit 2025-05-15 16:08:48 +07:00
Command first commit 2025-05-15 16:08:48 +07:00
DataCollector first commit 2025-05-15 16:08:48 +07:00
DependencyInjection first commit 2025-05-15 16:08:48 +07:00
Dumper first commit 2025-05-15 16:08:48 +07:00
Exception first commit 2025-05-15 16:08:48 +07:00
Extractor first commit 2025-05-15 16:08:48 +07:00
Formatter first commit 2025-05-15 16:08:48 +07:00
Loader first commit 2025-05-15 16:08:48 +07:00
Provider first commit 2025-05-15 16:08:48 +07:00
Reader first commit 2025-05-15 16:08:48 +07:00
Resources first commit 2025-05-15 16:08:48 +07:00
Test first commit 2025-05-15 16:08:48 +07:00
Util first commit 2025-05-15 16:08:48 +07:00
Writer first commit 2025-05-15 16:08:48 +07:00
CHANGELOG.md first commit 2025-05-15 16:08:48 +07:00
CatalogueMetadataAwareInterface.php first commit 2025-05-15 16:08:48 +07:00
DataCollectorTranslator.php first commit 2025-05-15 16:08:48 +07:00
IdentityTranslator.php first commit 2025-05-15 16:08:48 +07:00
LICENSE first commit 2025-05-15 16:08:48 +07:00
LocaleSwitcher.php first commit 2025-05-15 16:08:48 +07:00
LoggingTranslator.php first commit 2025-05-15 16:08:48 +07:00
MessageCatalogue.php first commit 2025-05-15 16:08:48 +07:00
MessageCatalogueInterface.php first commit 2025-05-15 16:08:48 +07:00
MetadataAwareInterface.php first commit 2025-05-15 16:08:48 +07:00
PseudoLocalizationTranslator.php first commit 2025-05-15 16:08:48 +07:00
README.md first commit 2025-05-15 16:08:48 +07:00
TranslatableMessage.php first commit 2025-05-15 16:08:48 +07:00
Translator.php first commit 2025-05-15 16:08:48 +07:00
TranslatorBag.php first commit 2025-05-15 16:08:48 +07:00
TranslatorBagInterface.php first commit 2025-05-15 16:08:48 +07:00
composer.json first commit 2025-05-15 16:08:48 +07:00

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