zhangdehua 898e06e04e first commit 2 ani în urmă
..
Catalogue 898e06e04e first commit 2 ani în urmă
Command 898e06e04e first commit 2 ani în urmă
DataCollector 898e06e04e first commit 2 ani în urmă
DependencyInjection 898e06e04e first commit 2 ani în urmă
Dumper 898e06e04e first commit 2 ani în urmă
Exception 898e06e04e first commit 2 ani în urmă
Extractor 898e06e04e first commit 2 ani în urmă
Formatter 898e06e04e first commit 2 ani în urmă
Loader 898e06e04e first commit 2 ani în urmă
Provider 898e06e04e first commit 2 ani în urmă
Reader 898e06e04e first commit 2 ani în urmă
Resources 898e06e04e first commit 2 ani în urmă
Test 898e06e04e first commit 2 ani în urmă
Util 898e06e04e first commit 2 ani în urmă
Writer 898e06e04e first commit 2 ani în urmă
CHANGELOG.md 898e06e04e first commit 2 ani în urmă
CatalogueMetadataAwareInterface.php 898e06e04e first commit 2 ani în urmă
DataCollectorTranslator.php 898e06e04e first commit 2 ani în urmă
IdentityTranslator.php 898e06e04e first commit 2 ani în urmă
LICENSE 898e06e04e first commit 2 ani în urmă
LocaleSwitcher.php 898e06e04e first commit 2 ani în urmă
LoggingTranslator.php 898e06e04e first commit 2 ani în urmă
MessageCatalogue.php 898e06e04e first commit 2 ani în urmă
MessageCatalogueInterface.php 898e06e04e first commit 2 ani în urmă
MetadataAwareInterface.php 898e06e04e first commit 2 ani în urmă
PseudoLocalizationTranslator.php 898e06e04e first commit 2 ani în urmă
README.md 898e06e04e first commit 2 ani în urmă
TranslatableMessage.php 898e06e04e first commit 2 ani în urmă
Translator.php 898e06e04e first commit 2 ani în urmă
TranslatorBag.php 898e06e04e first commit 2 ani în urmă
TranslatorBagInterface.php 898e06e04e first commit 2 ani în urmă
composer.json 898e06e04e first commit 2 ani în urmă

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 6.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