X\choro 48f1b97cc3 first commit 10 hónapja
..
Catalogue 48f1b97cc3 first commit 10 hónapja
Command 48f1b97cc3 first commit 10 hónapja
DataCollector 48f1b97cc3 first commit 10 hónapja
DependencyInjection 48f1b97cc3 first commit 10 hónapja
Dumper 48f1b97cc3 first commit 10 hónapja
Exception 48f1b97cc3 first commit 10 hónapja
Extractor 48f1b97cc3 first commit 10 hónapja
Formatter 48f1b97cc3 first commit 10 hónapja
Loader 48f1b97cc3 first commit 10 hónapja
Provider 48f1b97cc3 first commit 10 hónapja
Reader 48f1b97cc3 first commit 10 hónapja
Resources 48f1b97cc3 first commit 10 hónapja
Test 48f1b97cc3 first commit 10 hónapja
Util 48f1b97cc3 first commit 10 hónapja
Writer 48f1b97cc3 first commit 10 hónapja
CHANGELOG.md 48f1b97cc3 first commit 10 hónapja
CatalogueMetadataAwareInterface.php 48f1b97cc3 first commit 10 hónapja
DataCollectorTranslator.php 48f1b97cc3 first commit 10 hónapja
IdentityTranslator.php 48f1b97cc3 first commit 10 hónapja
LICENSE 48f1b97cc3 first commit 10 hónapja
LocaleSwitcher.php 48f1b97cc3 first commit 10 hónapja
LoggingTranslator.php 48f1b97cc3 first commit 10 hónapja
MessageCatalogue.php 48f1b97cc3 first commit 10 hónapja
MessageCatalogueInterface.php 48f1b97cc3 first commit 10 hónapja
MetadataAwareInterface.php 48f1b97cc3 first commit 10 hónapja
PseudoLocalizationTranslator.php 48f1b97cc3 first commit 10 hónapja
README.md 48f1b97cc3 first commit 10 hónapja
TranslatableMessage.php 48f1b97cc3 first commit 10 hónapja
Translator.php 48f1b97cc3 first commit 10 hónapja
TranslatorBag.php 48f1b97cc3 first commit 10 hónapja
TranslatorBagInterface.php 48f1b97cc3 first commit 10 hónapja
composer.json 48f1b97cc3 first commit 10 hónapja

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