Covid19india-react: Adding support for localization using i18n

Created on 23 Mar 2020  Â·  8Comments  Â·  Source: covid19india/covid19india-react

As discussed, we need to add support for regional languages for the users to access the information. Finer details still need to be ironed out.

Claimed In Progress

Most helpful comment

I think having a language selector would be a much better ux flow!

Here's a quick mockup I made to on how we can implement the language selection.

Screen Shot 2020-03-23 at 1 25 26 PM

All 8 comments

I think having a language selector would be a much better ux flow!

Here's a quick mockup I made to on how we can implement the language selection.

Screen Shot 2020-03-23 at 1 25 26 PM

Do we really need localisation support ?

Instead of all region languages I think we have to include Hindi as for now.
Suggestion?

@sangamesh1439 it's been marked as low priority - that should answer your question about whether it's needed.

@sauravpratihar - the framework to add support for different languages stays the same - once it has been done for any one other language, it can be easily scaled for other languages. We can start with Hindi as the first language. But other languages would need to follow up soon

Can I take this issue?

I have created a very quick demo for showing translation setup using react-i18next
https://covid19india-react-three.now.sh/

  • as of now it's only translating single key I'll add other keys and submit PR

also is this project using any sort of formatter/linter because I have seen many unused imports, will it be okay if I cleanup imports and add prettier?

Update: It's done and demo at https://covid19india-react-three.now.sh/

Regionalization would be a good thing to have!

@harshzalavadiya mentioned you in #432

In language selector bengali is written as "বাঙালি" where as the original spelling is "বাংলা", I would request you to change it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeremyphilemon picture jeremyphilemon  Â·  6Comments

Vaibhav2812 picture Vaibhav2812  Â·  4Comments

iDhruv22 picture iDhruv22  Â·  6Comments

abbhhiisseek picture abbhhiisseek  Â·  5Comments

ninjakx picture ninjakx  Â·  3Comments