Skip to content

The Translation component provides tools to internationalize your application.

License

Notifications You must be signed in to change notification settings

postyou/translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

83d487b · Jan 1, 2023
Dec 25, 2021
Jul 20, 2022
Aug 24, 2021
Oct 28, 2021
Jun 27, 2022
Sep 10, 2021
Sep 7, 2021
May 30, 2020
Jun 27, 2022
Sep 10, 2021
Sep 7, 2021
Oct 7, 2022
Feb 9, 2022
Aug 2, 2022
Aug 17, 2021
Sep 7, 2021
Mar 27, 2020
Jul 21, 2013
Sep 10, 2021
Sep 7, 2021
Jun 7, 2019
Jan 1, 2023
Sep 7, 2021
Aug 2, 2022
Aug 17, 2021
Jul 3, 2021
Jul 20, 2022
Nov 23, 2021
Sep 10, 2021
Nov 29, 2021
Mar 24, 2022
Apr 21, 2021
Nov 23, 2021
Nov 11, 2018

Repository files navigation

Translation Component

The Translation component provides tools to internationalize your application.

Getting Started

$ composer require symfony/translation
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\Loader\ArrayLoader;

$translator = new Translator('fr_FR');
$translator->addLoader('array', new ArrayLoader());
$translator->addResource('array', [
    'Hello World!' => 'Bonjour !',
], 'fr_FR');

echo $translator->trans('Hello World!'); // outputs « Bonjour ! »

Sponsor

The Translation component for Symfony 5.4/6.0 is backed by:

  • Crowdin, a cloud-based localization management software helping teams to go global and stay agile.
  • Lokalise, a continuous localization and translation management platform that integrates into your development workflow so you can ship localized products, faster.

Help Symfony by sponsoring its development!

Resources

About

The Translation component provides tools to internationalize your application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%