feat: language settings support Japanese
This commit is contained in:
parent
9d5de42798
commit
e18b235777
@ -1,6 +1,8 @@
|
|||||||
import antdEnUS from 'antd/lib/locale/en_US';
|
import antdEnUS from 'antd/lib/locale/en_US';
|
||||||
|
import antdJaJP from 'antd/lib/locale/ja_JP';
|
||||||
import antdZhCN from 'antd/lib/locale/zh_CN';
|
import antdZhCN from 'antd/lib/locale/zh_CN';
|
||||||
import enUS from './en_US';
|
import enUS from './en_US';
|
||||||
|
import jaJP from './ja_JP';
|
||||||
import zhCN from './zh_CN';
|
import zhCN from './zh_CN';
|
||||||
|
|
||||||
export type LocaleOptions = {
|
export type LocaleOptions = {
|
||||||
@ -23,6 +25,18 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'ja-JP': {
|
||||||
|
label: '日本語',
|
||||||
|
// https://github.com/moment/moment/blob/develop/locale/ja.js
|
||||||
|
moment: 'ja',
|
||||||
|
// https://github.com/ant-design/ant-design/tree/master/components/locale/ja_JP
|
||||||
|
antd: antdJaJP,
|
||||||
|
resources: {
|
||||||
|
client: {
|
||||||
|
...jaJP,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
'zh-CN': {
|
'zh-CN': {
|
||||||
label: '简体中文',
|
label: '简体中文',
|
||||||
// https://github.com/moment/moment/blob/develop/locale/zh-cn.js
|
// https://github.com/moment/moment/blob/develop/locale/zh-cn.js
|
||||||
|
Loading…
Reference in New Issue
Block a user