You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
643 B

2 years ago
import type { DropMenu } from '../components/Dropdown'
import type { LocaleSetting, LocaleType } from '@/types/config'
export const LOCALE: { [key: string]: LocaleType } = {
ZH_CN: 'zh_CN',
EN_US: 'en',
2 years ago
}
export const localeSetting: LocaleSetting = {
// 是否显示语言选择器
2 years ago
showPicker: true,
// 当前语言
2 years ago
locale: LOCALE.ZH_CN,
// 默认语言
2 years ago
fallback: LOCALE.ZH_CN,
// 允许的语言
availableLocales: [LOCALE.ZH_CN, LOCALE.EN_US],
2 years ago
}
// 语言列表
2 years ago
export const localeList: DropMenu[] = [
{
text: '简体中文',
event: LOCALE.ZH_CN,
2 years ago
},
{
text: 'English',
event: LOCALE.EN_US,
},
2 years ago
]