diff options
author | Koala Yeung <koalay@gmail.com> | 2017-04-12 14:50:50 +0800 |
---|---|---|
committer | wxcafé <wxcafe@users.noreply.github.com> | 2017-04-12 08:50:50 +0200 |
commit | 24eb45425efc82b55c7412f4b43eae1f49d771ca (patch) | |
tree | 9d119097cd2e6c92fe65ae8f6a180bf04f2fb314 /app/assets/javascripts/components/locales/index.jsx | |
parent | 3442bc0ea3c06e64d891fc2e2af0326f1194e3a3 (diff) |
Add Traditional Chinese, Hong Kong translation (zh-HK) (#1544)
* Added Chinese Traditional Hong Kong (zh-HK) for Ruby * Added translations for Ruby. * Added Chinese Traditional Hong Kong (zh-HK) for JS * Added translations for javascript code. * Rearrange language references in mastodon.jsx * Break `addLocaleData` into multiple lines. Make future commit more readable. * Roughly re-sort the languages in alphabetical orders (only manually put English on top because it is default). * Sort application.rb locale with alphabetical order With exception that English (default language) goes first. Improve code readability. * Resort language selection box alphabetically Sort HUMAN_LOCALES in the alphabetical order of display name (except English, the default language, come first). Improve usability.
Diffstat (limited to 'app/assets/javascripts/components/locales/index.jsx')
-rw-r--r-- | app/assets/javascripts/components/locales/index.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/locales/index.jsx b/app/assets/javascripts/components/locales/index.jsx index da85240b7..c3c5784ab 100644 --- a/app/assets/javascripts/components/locales/index.jsx +++ b/app/assets/javascripts/components/locales/index.jsx @@ -9,6 +9,7 @@ import fi from './fi'; import eo from './eo'; import ru from './ru'; import ja from './ja'; +import zh_hk from './zh-hk'; const locales = { @@ -22,8 +23,8 @@ const locales = { fi, eo, ru, - ja - + ja, + 'zh-HK': zh_hk, }; export default function getMessagesForLocale (locale) { |