symfony/translation

Symfony Translation Component

Installs: 180 181 628

Dependents: 1 359

Suggesters: 67

Security: 1

Stars: 5 841

Watchers: 13

Forks: 60

v5.1.5 2020-08-17 10:01 UTC

This package is auto-updated.

Last update: 2020-09-26 05:29:15 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