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

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