Skip to content

Commit

Permalink
Update docs for i18n (kubernetes#4250)
Browse files Browse the repository at this point in the history
Add `ko` and `zh` as supported languages.
  • Loading branch information
shu-mutou authored and k8s-ci-robot committed Sep 4, 2019
1 parent 2c5c836 commit 7a583d1
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docs/developer/internationalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

Based on current browser locale the Dashboard can be displayed in one of the supported languages listed below. In case it does not work, make sure that your browser's locale is identified with correct language code.

| Language | Code |
--------------------|------|
| English (default) | en |
| French | fr |
| Japanese | ja |
| Language | Code |
|--------------------|------|
| English (default) | en |
| French | fr |
| Japanese | ja |
| Korean | ko |
| Simplified Chinese | zh |

## Building localized dashboard

Expand Down Expand Up @@ -42,11 +44,13 @@ Find new localizable texts in `i18n/messages.[locale].xlf` file and translate te
After preparation of new translation file, configure `i18n/locale conf.json` file to build newly localized dashboard as follows:

```
{"translations": [ "en", "fr" ]}
{"translations": [ "en", "fr", "ko", "zh" ]}
```
To add Japanese translation file, add `"ja"` into `"translations"` array.

To add Japanese translation file, add `"ja"` into `"translations"` array in alphabetical order.

```
{"translations": [ "en", "fr", "ja" ]}
{"translations": [ "en", "fr", "ja", "ko", "zh" ]}
```

Then you can build your localized dashboard with `npm run build`.
Expand Down

0 comments on commit 7a583d1

Please sign in to comment.