forked from cybrespace/mastodon
Fix Chinese (China) translation availability (#2230)
This commit is contained in:
parent
3b342be2f2
commit
e06f307c2d
|
@ -58,6 +58,7 @@ import uk from 'react-intl/locale-data/uk';
|
||||||
import zh from 'react-intl/locale-data/zh';
|
import zh from 'react-intl/locale-data/zh';
|
||||||
import bg from 'react-intl/locale-data/bg';
|
import bg from 'react-intl/locale-data/bg';
|
||||||
import { localeData as zh_hk } from '../locales/zh-hk';
|
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 pt_br from '../locales/pt-br';
|
||||||
import getMessagesForLocale from '../locales';
|
import getMessagesForLocale from '../locales';
|
||||||
import { hydrateStore } from '../actions/store';
|
import { hydrateStore } from '../actions/store';
|
||||||
|
@ -89,6 +90,7 @@ addLocaleData([
|
||||||
...uk,
|
...uk,
|
||||||
...zh,
|
...zh,
|
||||||
...zh_hk,
|
...zh_hk,
|
||||||
|
...zh_cn,
|
||||||
...bg,
|
...bg,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ import eo from './eo';
|
||||||
import ru from './ru';
|
import ru from './ru';
|
||||||
import ja from './ja';
|
import ja from './ja';
|
||||||
import zh_hk from './zh-hk';
|
import zh_hk from './zh-hk';
|
||||||
|
import zh_cn from './zh-cn';
|
||||||
import bg from './bg';
|
import bg from './bg';
|
||||||
|
|
||||||
const locales = {
|
const locales = {
|
||||||
|
@ -36,6 +37,7 @@ const locales = {
|
||||||
ru,
|
ru,
|
||||||
ja,
|
ja,
|
||||||
'zh-HK': zh_hk,
|
'zh-HK': zh_hk,
|
||||||
|
'zh-CN': zh_cn,
|
||||||
bg,
|
bg,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue