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

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