Browse Source

Fix Chinese (China) translation availability (#2230)

closed-social-v3
Yeechan Lu 7 years ago
committed by Eugen
parent
commit
e06f307c2d
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      app/assets/javascripts/components/containers/mastodon.jsx
  2. +2
    -0
      app/assets/javascripts/components/locales/index.jsx

+ 2
- 0
app/assets/javascripts/components/containers/mastodon.jsx View File

@ -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,
]);

+ 2
- 0
app/assets/javascripts/components/locales/index.jsx View File

@ -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,
};

Loading…
Cancel
Save