about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYeechan Lu <wz.bluesnow@gmail.com>2017-04-21 09:28:38 +0800
committerEugen <eugen@zeonfederated.com>2017-04-21 03:28:38 +0200
commite06f307c2d9d451440fc69ba261427ab40a8b969 (patch)
treea3a6757feaee7bbdb4f075911d475a913f41bffd
parent3b342be2f256dc3bb4e93574e995f8c4acb79f5d (diff)
Fix Chinese (China) translation availability (#2230)
-rw-r--r--app/assets/javascripts/components/containers/mastodon.jsx2
-rw-r--r--app/assets/javascripts/components/locales/index.jsx2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/containers/mastodon.jsx b/app/assets/javascripts/components/containers/mastodon.jsx
index d96f0b344..2050d9362 100644
--- a/app/assets/javascripts/components/containers/mastodon.jsx
+++ b/app/assets/javascripts/components/containers/mastodon.jsx
@@ -58,6 +58,7 @@ import uk from 'react-intl/locale-data/uk';
 import zh from 'react-intl/locale-data/zh';
 import bg from 'react-intl/locale-data/bg';
 import { localeData as zh_hk } from '../locales/zh-hk';
+import { localeData as zh_cn } from '../locales/zh-cn';
 import pt_br from '../locales/pt-br';
 import getMessagesForLocale from '../locales';
 import { hydrateStore } from '../actions/store';
@@ -89,6 +90,7 @@ addLocaleData([
   ...uk,
   ...zh,
   ...zh_hk,
+  ...zh_cn,
   ...bg,
 ]);
 
diff --git a/app/assets/javascripts/components/locales/index.jsx b/app/assets/javascripts/components/locales/index.jsx
index 35823748a..a7dfeca73 100644
--- a/app/assets/javascripts/components/locales/index.jsx
+++ b/app/assets/javascripts/components/locales/index.jsx
@@ -16,6 +16,7 @@ import eo from './eo';
 import ru from './ru';
 import ja from './ja';
 import zh_hk from './zh-hk';
+import zh_cn from './zh-cn';
 import bg from './bg';
 
 const locales = {
@@ -36,6 +37,7 @@ const locales = {
   ru,
   ja,
   'zh-HK': zh_hk,
+  'zh-CN': zh_cn,
   bg,
 };