rkljw 2d74f709d7 news_producer 8 bulan lalu
..
Catalogue 2d74f709d7 news_producer 8 bulan lalu
Command 2d74f709d7 news_producer 8 bulan lalu
DataCollector 2d74f709d7 news_producer 8 bulan lalu
DependencyInjection 2d74f709d7 news_producer 8 bulan lalu
Dumper 2d74f709d7 news_producer 8 bulan lalu
Exception 2d74f709d7 news_producer 8 bulan lalu
Extractor 2d74f709d7 news_producer 8 bulan lalu
Formatter 2d74f709d7 news_producer 8 bulan lalu
Loader 2d74f709d7 news_producer 8 bulan lalu
Provider 2d74f709d7 news_producer 8 bulan lalu
Reader 2d74f709d7 news_producer 8 bulan lalu
Resources 2d74f709d7 news_producer 8 bulan lalu
Test 2d74f709d7 news_producer 8 bulan lalu
Util 2d74f709d7 news_producer 8 bulan lalu
Writer 2d74f709d7 news_producer 8 bulan lalu
CHANGELOG.md 2d74f709d7 news_producer 8 bulan lalu
CatalogueMetadataAwareInterface.php 2d74f709d7 news_producer 8 bulan lalu
DataCollectorTranslator.php 2d74f709d7 news_producer 8 bulan lalu
IdentityTranslator.php 2d74f709d7 news_producer 8 bulan lalu
LICENSE 2d74f709d7 news_producer 8 bulan lalu
LocaleSwitcher.php 2d74f709d7 news_producer 8 bulan lalu
LoggingTranslator.php 2d74f709d7 news_producer 8 bulan lalu
MessageCatalogue.php 2d74f709d7 news_producer 8 bulan lalu
MessageCatalogueInterface.php 2d74f709d7 news_producer 8 bulan lalu
MetadataAwareInterface.php 2d74f709d7 news_producer 8 bulan lalu
PseudoLocalizationTranslator.php 2d74f709d7 news_producer 8 bulan lalu
README.md 2d74f709d7 news_producer 8 bulan lalu
TranslatableMessage.php 2d74f709d7 news_producer 8 bulan lalu
Translator.php 2d74f709d7 news_producer 8 bulan lalu
TranslatorBag.php 2d74f709d7 news_producer 8 bulan lalu
TranslatorBagInterface.php 2d74f709d7 news_producer 8 bulan lalu
composer.json 2d74f709d7 news_producer 8 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