urban 5cc30c4fee first commit 10 ay önce
..
Catalogue 5cc30c4fee first commit 10 ay önce
Command 5cc30c4fee first commit 10 ay önce
DataCollector 5cc30c4fee first commit 10 ay önce
DependencyInjection 5cc30c4fee first commit 10 ay önce
Dumper 5cc30c4fee first commit 10 ay önce
Exception 5cc30c4fee first commit 10 ay önce
Extractor 5cc30c4fee first commit 10 ay önce
Formatter 5cc30c4fee first commit 10 ay önce
Loader 5cc30c4fee first commit 10 ay önce
Provider 5cc30c4fee first commit 10 ay önce
Reader 5cc30c4fee first commit 10 ay önce
Resources 5cc30c4fee first commit 10 ay önce
Test 5cc30c4fee first commit 10 ay önce
Util 5cc30c4fee first commit 10 ay önce
Writer 5cc30c4fee first commit 10 ay önce
CHANGELOG.md 5cc30c4fee first commit 10 ay önce
DataCollectorTranslator.php 5cc30c4fee first commit 10 ay önce
IdentityTranslator.php 5cc30c4fee first commit 10 ay önce
LICENSE 5cc30c4fee first commit 10 ay önce
LoggingTranslator.php 5cc30c4fee first commit 10 ay önce
MessageCatalogue.php 5cc30c4fee first commit 10 ay önce
MessageCatalogueInterface.php 5cc30c4fee first commit 10 ay önce
MetadataAwareInterface.php 5cc30c4fee first commit 10 ay önce
PseudoLocalizationTranslator.php 5cc30c4fee first commit 10 ay önce
README.md 5cc30c4fee first commit 10 ay önce
TranslatableMessage.php 5cc30c4fee first commit 10 ay önce
Translator.php 5cc30c4fee first commit 10 ay önce
TranslatorBag.php 5cc30c4fee first commit 10 ay önce
TranslatorBagInterface.php 5cc30c4fee first commit 10 ay önce
composer.json 5cc30c4fee 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 5.4/6.0 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.
  • Lokalise, a continuous localization and translation management platform that integrates into your development workflow so you can ship localized products, faster.

Help Symfony by sponsoring its development!

Resources