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