translation

by symfony

symfony /translation

The Translation component provides tools to internationalize your application.

5.8K Stars 60 Forks Last release: 17 days ago (v5.1.5) MIT License 1.6K Commits 468 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.