linkerd2 icon indicating copy to clipboard operation
linkerd2 copied to clipboard

Add locales to Linkerd web dashboard

Open scottcarol opened this issue 6 years ago • 5 comments

Feature Request

What problem are you trying to solve?

The web dashboard for Linkerd now has en and es translations. This can be expanded to other languages.

How should the problem be solved?

To add a new locale, follow the local development instructions in BUILD.md. Then, from your command line:

cd web/app
yarn lingui add-locale [locales...]

This will create a your-new-locale/messages.json file for new locale(s), that will automatically have all existing keys. Once you have edited that new messages.json file, you can run yarn lingui compile and view on your web browser in the language of your choice.

scottcarol avatar Aug 17 '20 03:08 scottcarol

@scottcarol Just want to make sure I understand the scope, is there a list of locales we want to include as part of this issue? Or is this more a doc update? Or do we want to introduce a new script etc.?

ihcsim avatar Aug 17 '20 16:08 ihcsim

Per conversation with @scottcarol, the purpose of this issue is to promote visibility of the process to add more locales to the Linkerd dashboard, following interests in KubeCon. We agree that this info should be added to the Linkerd doc. I will follow up with a separate doc PR.

ihcsim avatar Aug 17 '20 17:08 ihcsim

I am happy to work on the French translation - unless it's better to wait for a locales that are desired / needed, as you've mentioned @ihcsim?

eugeniaguerrero avatar Aug 18 '20 10:08 eugeniaguerrero

@eugeniaguerrero That sounds awesome! Please go ahead and submit a PR with your changes. If you need help with getting the build running locally, feel free to drop by the #contributors channel.

ihcsim avatar Aug 18 '20 15:08 ihcsim

Closing this issue. See BUILD.md for steps to add more locales. Feel free to raise any questions in the #contributors channel.

ihcsim avatar Aug 24 '20 17:08 ihcsim