feat: language settings support Japanese

This commit is contained in:
chenos 2022-09-09 22:03:49 +08:00
parent 9d5de42798
commit e18b235777

View File

@ -1,6 +1,8 @@
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 enUS from './en_US';
import jaJP from './ja_JP';
import zhCN from './zh_CN';
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': {
label: '简体中文',
// https://github.com/moment/moment/blob/develop/locale/zh-cn.js