security-checklist icon indicating copy to clipboard operation
security-checklist copied to clipboard

Add language localization options.

Open mgmgpyaesonewin opened this issue 5 years ago • 17 comments

In my opinion, enabling localization will help a lot of people to understand more. Since this is related to not only geeks but also normal users. It will be a good idea if we add it. Can I take this issue? If can I take it, may I know the checklist for making a pull request?

mgmgpyaesonewin avatar Jan 14 '19 02:01 mgmgpyaesonewin

Let's do it! I've not worked through internationalizing a small app like this, so your help leading this would really be appreciated.

Perhaps we should add a call for translation help to README.md?

brianlovin avatar Jan 14 '19 03:01 brianlovin

Count me in for localization of strings in Italian! 👍

lucaorio avatar Jan 14 '19 19:01 lucaorio

Count me in for localization of strings in French!

camilleroux avatar Jan 15 '19 14:01 camilleroux

Could we start translating by copying config to something like config-ru|it|etc. dir even before someone with enough frontend knowledge does the coding?

gsamat avatar Jan 15 '19 15:01 gsamat

https://github.com/isaachinman/next-i18next seems like the best place for us to start. Can poke around the code tonight or later this week.

brianlovin avatar Jan 15 '19 17:01 brianlovin

Count me in for localization of strings in Polish!

temasso avatar Jan 15 '19 17:01 temasso

https://github.com/isaachinman/next-i18next seems like the best place for us to start. Can poke around the code tonight or later this week.

please stub at least one translation sceleton (could be a copy-paste from English) so that we can follow up on that.

I'd be doing Russian version :)

gsamat avatar Jan 15 '19 22:01 gsamat

I can help with the Spanish localization 🇪🇸

fjaguero avatar Jan 15 '19 23:01 fjaguero

Happy to help with a german localisation!

Just a quick note that localisation doesn't only mean translations but potentially also adapting links (e.g. of the telekom providers) and even replacing entire sections (the section on credit cards doesn't work this way in Germany at all I believe and would just confuse the readers).

gnunicorn avatar Jan 16 '19 08:01 gnunicorn

Count me in for localization of strings in Persian! Also, I should point out that in some cases we may need to add or remove security tips from the main list, so it's not just translation

Hameds avatar Jan 16 '19 18:01 Hameds

Is anyone working on setting up i18next? I'm happy to set it up so everyone can start contributing their translation 😸

diego-codes avatar Jan 17 '19 00:01 diego-codes

@diego-codes I don't think anyone has started, but to the previous points we might want to think this through beyond just string translations, since some sections aren't applicable to countries outside of the US

brianlovin avatar Jan 17 '19 00:01 brianlovin

I had started writing code. But I need some help @brianlovin. I followed according to documentation from https://github.com/isaachinman/next-i18next.

What I had achieved is <Heading>{this.props.t('be-safe-on-the-internet')}</Heading>.

But I was hading hard time how to use for config/data.js file. I am not sure whether I could pass pros or do sth.

I would love to know how would you recommed to do it? And what would you love to add for translation help to README.md?

mgmgpyaesonewin avatar Jan 18 '19 19:01 mgmgpyaesonewin

@mgmgpyaesonewin could you push up a work in progress branch so I can see where you're at?

brianlovin avatar Jan 18 '19 22:01 brianlovin

I should mention another thing about the multilingual feature: we need layout support for RTL languages such as Persian, Arabic, Hebrew

Hameds avatar Jan 19 '19 06:01 Hameds

I started with the infrastructure work here: https://github.com/gnunicorn/security-checklist/tree/ben-i18n

It is set up to have separate namespaces for pages and components, can already toggle the language and update on the fly. Next up (but I am not sure when I have time for that):

  • [ ] extract all inline text and put them into locale files
  • [ ] extract all text from apps, make app-namespaces available
  • [ ] add feature to flag data(-entry) to not-show/only-show in certain lang
  • [ ] provide a proper language-toggle (currently detects browser)

If anyone wants to help work on this, let me know and I'll grant you access!

gnunicorn avatar Feb 12 '19 13:02 gnunicorn

If anyone wants to help work on this, let me know and I'll grant you access!

I won't have time to help on this for a while, but if you add me I might try to dip in and out to help :)

brianlovin avatar Feb 12 '19 18:02 brianlovin