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

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