symfony/translation

Symfony Translation Component

Installs: 147 763 242

Dependents: 1 253

Suggesters: 62

Security: 1

Stars: 5 756

Watchers: 11

Forks: 58

v5.0.6 2020-03-18 08:00 UTC

This package is auto-updated.

Last update: 2020-03-30 11:48:03 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