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

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