The Wayback Machine - https://web.archive.org/web/20201113045742/https://github.com/symfony/translation
Skip to content
5.x
Go to file
Code

README.md

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

$ composer require symfony/translation
use Symfony\Component\Translation\Translator;

$translator = new Translator('fr_FR');
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Resources

You can’t perform that action at this time.