-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix locale mapping Now, Angular>=9.0.5 supports `zh-Hant-HK` and `zh-Hans-SG`, so we can build for them. Also, `Match` of `golang.org/x/text/language` returns `zh-u-rg-cnzzzz` for `zh-CN` and `zh-u-rg-txzzzz` for `zh-TW`, so we need to handle them properly before. Since `Match` returns tag as `zh-Hant-HK` for `zh-HK`, and `zh-Hans-SG` for `zh-SG`, so dashboard just use them. However due to following reason, remove `zh-Hant-SG` and `zh` support for now. * Chinese is not official in Singapore * `zh` is not used often * Translation files for `zh` and `zh-Hans-SG` is same as `zh-Hant` for now. In conclusion, dashboard supports strictly matched locale IDs as followings: * en (default) * de * fr * ja * ko * zh-CN (zh-Hans) * zh-TW (zh-Hant) * zh-HK (zh-Hant-HK) Also, support locales in lowercase and clean up `state="new"` in some translation files. * Simplify locale matching logic Co-authored-by: Sebastian Florek <sebastian.florek@loodse.com>
- Loading branch information
Showing
15 changed files
with
111 additions
and
10,653 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"translations": [ "de", "en", "fr", "ja", "ko", "zh", "zh-Hans", "zh-Hant-HK", "zh-Hans-SG", "zh-Hant" ]} | ||
{"translations": [ "de", "en", "fr", "ja", "ko", "zh-Hans", "zh-Hant", "zh-Hant-HK" ]} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.