urban 02fbfd43e2 codes commit 1 ay önce
..
Catalogue 02fbfd43e2 codes commit 1 ay önce
Command 02fbfd43e2 codes commit 1 ay önce
DataCollector 02fbfd43e2 codes commit 1 ay önce
DependencyInjection 02fbfd43e2 codes commit 1 ay önce
Dumper 02fbfd43e2 codes commit 1 ay önce
Exception 02fbfd43e2 codes commit 1 ay önce
Extractor 02fbfd43e2 codes commit 1 ay önce
Formatter 02fbfd43e2 codes commit 1 ay önce
Loader 02fbfd43e2 codes commit 1 ay önce
Provider 02fbfd43e2 codes commit 1 ay önce
Reader 02fbfd43e2 codes commit 1 ay önce
Resources 02fbfd43e2 codes commit 1 ay önce
Test 02fbfd43e2 codes commit 1 ay önce
Util 02fbfd43e2 codes commit 1 ay önce
Writer 02fbfd43e2 codes commit 1 ay önce
CHANGELOG.md 02fbfd43e2 codes commit 1 ay önce
DataCollectorTranslator.php 02fbfd43e2 codes commit 1 ay önce
IdentityTranslator.php 02fbfd43e2 codes commit 1 ay önce
LICENSE 02fbfd43e2 codes commit 1 ay önce
LoggingTranslator.php 02fbfd43e2 codes commit 1 ay önce
MessageCatalogue.php 02fbfd43e2 codes commit 1 ay önce
MessageCatalogueInterface.php 02fbfd43e2 codes commit 1 ay önce
MetadataAwareInterface.php 02fbfd43e2 codes commit 1 ay önce
PseudoLocalizationTranslator.php 02fbfd43e2 codes commit 1 ay önce
README.md 02fbfd43e2 codes commit 1 ay önce
TranslatableMessage.php 02fbfd43e2 codes commit 1 ay önce
Translator.php 02fbfd43e2 codes commit 1 ay önce
TranslatorBag.php 02fbfd43e2 codes commit 1 ay önce
TranslatorBagInterface.php 02fbfd43e2 codes commit 1 ay önce
composer.json 02fbfd43e2 codes commit 1 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