Musa 4547782a4a first commit 10 hónapja
..
Catalogue 4547782a4a first commit 10 hónapja
Command 4547782a4a first commit 10 hónapja
DataCollector 4547782a4a first commit 10 hónapja
DependencyInjection 4547782a4a first commit 10 hónapja
Dumper 4547782a4a first commit 10 hónapja
Exception 4547782a4a first commit 10 hónapja
Extractor 4547782a4a first commit 10 hónapja
Formatter 4547782a4a first commit 10 hónapja
Loader 4547782a4a first commit 10 hónapja
Provider 4547782a4a first commit 10 hónapja
Reader 4547782a4a first commit 10 hónapja
Resources 4547782a4a first commit 10 hónapja
Test 4547782a4a first commit 10 hónapja
Util 4547782a4a first commit 10 hónapja
Writer 4547782a4a first commit 10 hónapja
CHANGELOG.md 4547782a4a first commit 10 hónapja
CatalogueMetadataAwareInterface.php 4547782a4a first commit 10 hónapja
DataCollectorTranslator.php 4547782a4a first commit 10 hónapja
IdentityTranslator.php 4547782a4a first commit 10 hónapja
LICENSE 4547782a4a first commit 10 hónapja
LocaleSwitcher.php 4547782a4a first commit 10 hónapja
LoggingTranslator.php 4547782a4a first commit 10 hónapja
MessageCatalogue.php 4547782a4a first commit 10 hónapja
MessageCatalogueInterface.php 4547782a4a first commit 10 hónapja
MetadataAwareInterface.php 4547782a4a first commit 10 hónapja
PseudoLocalizationTranslator.php 4547782a4a first commit 10 hónapja
README.md 4547782a4a first commit 10 hónapja
TranslatableMessage.php 4547782a4a first commit 10 hónapja
Translator.php 4547782a4a first commit 10 hónapja
TranslatorBag.php 4547782a4a first commit 10 hónapja
TranslatorBagInterface.php 4547782a4a first commit 10 hónapja
composer.json 4547782a4a first commit 10 hónapja

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