symfony/translation

Symfony Translation Component

Installs: 193 034 374

Dependents: 1 405

Suggesters: 70

Security: 1

Stars: 5 891

Watchers: 13

Forks: 63

v5.2.0-RC2 2020-10-28 21:46 UTC

This package is auto-updated.

Last update: 2020-11-21 08:48:19 UTC


README

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