webhintio / hint

πŸ’‘ A hinting engine for the web

Home Page:https://webhint.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Being able to change the language

thierry-laval opened this issue Β· comments

commented

πŸš€ Feature request

Being able to change the language.

I would like to be able to use it in my own language in order to understand it better. French for me.

While the "hints" are localizable already, I don't think they are actually localized in other languages (i.e. the translations do not exist).
@vidorteg do you know more about this?

commented

Perhaps we could translate?
Which files need to be translated...?

Hi everyone,
This is an interesting topic, as @captainbrosset mentioned most of the hints should already be localizable meaning that the 'skeleton' for loading different locales and displaying them should already be in place, we followed the pattern set by:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization

Technically providing locales in the form of a json file (e.g de/message.json for german) should be enough for the translation part, but still there are some other workitems that would need to be tackled, on the top of my mind:

  • A way to choose the switch the locales
  • Most of the packages follow the messages.json but there are some that might need some extra work (like the ones coming from axe)

We can use this bug to track progress to track progress on any of these 3 areas, and again thanks for raising this issue :)

can I take this @vidorteg ?