urban 02fbfd43e2 codes commit 3 هفته پیش
..
Catalogue 02fbfd43e2 codes commit 3 هفته پیش
Command 02fbfd43e2 codes commit 3 هفته پیش
DataCollector 02fbfd43e2 codes commit 3 هفته پیش
DependencyInjection 02fbfd43e2 codes commit 3 هفته پیش
Dumper 02fbfd43e2 codes commit 3 هفته پیش
Exception 02fbfd43e2 codes commit 3 هفته پیش
Extractor 02fbfd43e2 codes commit 3 هفته پیش
Formatter 02fbfd43e2 codes commit 3 هفته پیش
Loader 02fbfd43e2 codes commit 3 هفته پیش
Provider 02fbfd43e2 codes commit 3 هفته پیش
Reader 02fbfd43e2 codes commit 3 هفته پیش
Resources 02fbfd43e2 codes commit 3 هفته پیش
Test 02fbfd43e2 codes commit 3 هفته پیش
Util 02fbfd43e2 codes commit 3 هفته پیش
Writer 02fbfd43e2 codes commit 3 هفته پیش
CHANGELOG.md 02fbfd43e2 codes commit 3 هفته پیش
DataCollectorTranslator.php 02fbfd43e2 codes commit 3 هفته پیش
IdentityTranslator.php 02fbfd43e2 codes commit 3 هفته پیش
LICENSE 02fbfd43e2 codes commit 3 هفته پیش
LoggingTranslator.php 02fbfd43e2 codes commit 3 هفته پیش
MessageCatalogue.php 02fbfd43e2 codes commit 3 هفته پیش
MessageCatalogueInterface.php 02fbfd43e2 codes commit 3 هفته پیش
MetadataAwareInterface.php 02fbfd43e2 codes commit 3 هفته پیش
PseudoLocalizationTranslator.php 02fbfd43e2 codes commit 3 هفته پیش
README.md 02fbfd43e2 codes commit 3 هفته پیش
TranslatableMessage.php 02fbfd43e2 codes commit 3 هفته پیش
Translator.php 02fbfd43e2 codes commit 3 هفته پیش
TranslatorBag.php 02fbfd43e2 codes commit 3 هفته پیش
TranslatorBagInterface.php 02fbfd43e2 codes commit 3 هفته پیش
composer.json 02fbfd43e2 codes commit 3 هفته پیش

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