mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-02 02:25:27 +08:00
前端和后端源码,合并到一个git仓库中,方便用户下载,避免前后端不匹配的问题
This commit is contained in:
30
jeecgboot-vue3/src/settings/localeSetting.ts
Normal file
30
jeecgboot-vue3/src/settings/localeSetting.ts
Normal file
@ -0,0 +1,30 @@
|
||||
import type { DropMenu } from '../components/Dropdown';
|
||||
import type { LocaleSetting, LocaleType } from '/#/config';
|
||||
|
||||
export const LOCALE: { [key: string]: LocaleType } = {
|
||||
ZH_CN: 'zh_CN',
|
||||
EN_US: 'en',
|
||||
};
|
||||
|
||||
export const localeSetting: LocaleSetting = {
|
||||
// 是否显示语言选择器
|
||||
showPicker: true,
|
||||
// 当前语言
|
||||
locale: LOCALE.ZH_CN,
|
||||
// 默认语言
|
||||
fallback: LOCALE.ZH_CN,
|
||||
// 允许的语言
|
||||
availableLocales: [LOCALE.ZH_CN, LOCALE.EN_US],
|
||||
};
|
||||
|
||||
// 语言列表
|
||||
export const localeList: DropMenu[] = [
|
||||
{
|
||||
text: '简体中文',
|
||||
event: LOCALE.ZH_CN,
|
||||
},
|
||||
{
|
||||
text: 'English',
|
||||
event: LOCALE.EN_US,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user