symfony/translation

Symfony Translation Component

Installs: 166 494 201

Dependents: 1 325

Suggesters: 66

Security: 0

Stars: 5 804

Watchers: 11

Forks: 59

v5.1.2 2020-05-30 20:35 UTC

This package is auto-updated.

Last update: 2020-06-30 17:43:52 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