Zory a30513060a frist vor 3 Wochen
..
Catalogue a30513060a frist vor 3 Wochen
Command a30513060a frist vor 3 Wochen
DataCollector a30513060a frist vor 3 Wochen
DependencyInjection a30513060a frist vor 3 Wochen
Dumper a30513060a frist vor 3 Wochen
Exception a30513060a frist vor 3 Wochen
Extractor a30513060a frist vor 3 Wochen
Formatter a30513060a frist vor 3 Wochen
Loader a30513060a frist vor 3 Wochen
Provider a30513060a frist vor 3 Wochen
Reader a30513060a frist vor 3 Wochen
Resources a30513060a frist vor 3 Wochen
Test a30513060a frist vor 3 Wochen
Util a30513060a frist vor 3 Wochen
Writer a30513060a frist vor 3 Wochen
CHANGELOG.md a30513060a frist vor 3 Wochen
CatalogueMetadataAwareInterface.php a30513060a frist vor 3 Wochen
DataCollectorTranslator.php a30513060a frist vor 3 Wochen
IdentityTranslator.php a30513060a frist vor 3 Wochen
LICENSE a30513060a frist vor 3 Wochen
LocaleSwitcher.php a30513060a frist vor 3 Wochen
LoggingTranslator.php a30513060a frist vor 3 Wochen
MessageCatalogue.php a30513060a frist vor 3 Wochen
MessageCatalogueInterface.php a30513060a frist vor 3 Wochen
MetadataAwareInterface.php a30513060a frist vor 3 Wochen
PseudoLocalizationTranslator.php a30513060a frist vor 3 Wochen
README.md a30513060a frist vor 3 Wochen
TranslatableMessage.php a30513060a frist vor 3 Wochen
Translator.php a30513060a frist vor 3 Wochen
TranslatorBag.php a30513060a frist vor 3 Wochen
TranslatorBagInterface.php a30513060a frist vor 3 Wochen
composer.json a30513060a frist vor 3 Wochen

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