Musa 4547782a4a first commit 10 luni în urmă
..
Catalogue 4547782a4a first commit 10 luni în urmă
Command 4547782a4a first commit 10 luni în urmă
DataCollector 4547782a4a first commit 10 luni în urmă
DependencyInjection 4547782a4a first commit 10 luni în urmă
Dumper 4547782a4a first commit 10 luni în urmă
Exception 4547782a4a first commit 10 luni în urmă
Extractor 4547782a4a first commit 10 luni în urmă
Formatter 4547782a4a first commit 10 luni în urmă
Loader 4547782a4a first commit 10 luni în urmă
Provider 4547782a4a first commit 10 luni în urmă
Reader 4547782a4a first commit 10 luni în urmă
Resources 4547782a4a first commit 10 luni în urmă
Test 4547782a4a first commit 10 luni în urmă
Util 4547782a4a first commit 10 luni în urmă
Writer 4547782a4a first commit 10 luni în urmă
CHANGELOG.md 4547782a4a first commit 10 luni în urmă
CatalogueMetadataAwareInterface.php 4547782a4a first commit 10 luni în urmă
DataCollectorTranslator.php 4547782a4a first commit 10 luni în urmă
IdentityTranslator.php 4547782a4a first commit 10 luni în urmă
LICENSE 4547782a4a first commit 10 luni în urmă
LocaleSwitcher.php 4547782a4a first commit 10 luni în urmă
LoggingTranslator.php 4547782a4a first commit 10 luni în urmă
MessageCatalogue.php 4547782a4a first commit 10 luni în urmă
MessageCatalogueInterface.php 4547782a4a first commit 10 luni în urmă
MetadataAwareInterface.php 4547782a4a first commit 10 luni în urmă
PseudoLocalizationTranslator.php 4547782a4a first commit 10 luni în urmă
README.md 4547782a4a first commit 10 luni în urmă
TranslatableMessage.php 4547782a4a first commit 10 luni în urmă
Translator.php 4547782a4a first commit 10 luni în urmă
TranslatorBag.php 4547782a4a first commit 10 luni în urmă
TranslatorBagInterface.php 4547782a4a first commit 10 luni în urmă
composer.json 4547782a4a first commit 10 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

The Translation component for Symfony 7.1 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.

Help Symfony by sponsoring its development!

Resources