covid-19-py icon indicating copy to clipboard operation
covid-19-py copied to clipboard

Translation of Website (i18n)

Open pA1nD opened this issue 4 years ago • 5 comments

We should make the website translatable to allow translations into Guarani.

The first steps would be to:

  • [x] use a i18n framework.
  • [x] use the translation function everywhere.
  • [x] establish a seemless translation workflow using a online translation tool.

This seems the right one: https://www.npmjs.com/package/react-i18next

pA1nD avatar Mar 18 '20 13:03 pA1nD

Hello, may be not translate in Guarani by reading but by audio voice, especially for people who live far away from cities. I Think this can be posible if someone can speak very well this language. I can help with translation, but with voice, we can find someone.

Fespinolaprieto avatar Mar 18 '20 17:03 Fespinolaprieto

#80 image

you can add a queryparam lng=en to change the language while testing. It should auto-detect the browser language.

jmayalag avatar Mar 19 '20 02:03 jmayalag

Audio translations handled in #76

pA1nD avatar Mar 21 '20 17:03 pA1nD

@jmayalag I implemented a language switcher in Storybook to make it nicer to work on it :)

Screenshot 2020-03-21 at 14 20 43

pA1nD avatar Mar 21 '20 17:03 pA1nD

@jmayalag I created a tool that allows anyone to edit the translations online. No GitHub account needed, no technical knowledge needed.

Check it here: https://translate.penguin.academy/

The tool will make a PR with the translations.

pA1nD avatar Mar 22 '20 10:03 pA1nD