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

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