Page MenuHomePhabricator

Activate i18n
Closed, ResolvedPublic

Description

i18n is already working at one exact point. Switching it on all over the app is necessary.
Not hard, but need to be done cleanly.

Downstream

This will allow us later to :

  1. T375653 add projects i18n/en.json to translatewiki
  2. add first translation to translatewiki (i18n/fr.json) and call for more
  3. add functioning select language button
  4. add url parameter ?language=fr for language selection to spread

Event Timeline

Yug triaged this task as High priority.

I reviewed the code relevant to this task.
It seems the current status is as follow :

  • ✅ Site repository has i18n implemented
  • App repository has not

The App should also have the i18n implemented :

Hi there,
I guess there is a reason to use both $t("key) and $tm("key"), but could you clarify ?

[EDIT:] Oh, got it, it's for arrays. See here and en.json