17 lines
933 B
TypeScript
17 lines
933 B
TypeScript
import { adminBaseRoutePath } from '/@/router/static/adminBase'
|
||
|
||
/*
|
||
* 语言包按需加载映射表
|
||
* 使用固定字符串 ${lang} 指代当前语言
|
||
* key 为页面 path,value 为语言包文件相对路径,访问时,按需自动加载映射表的语言包,同时加载 path 对应的语言包(若存在)
|
||
*/
|
||
export default {
|
||
'/': ['./frontend/${lang}/index.ts'],
|
||
[adminBaseRoutePath + '/moduleStore']: ['./backend/${lang}/module.ts'],
|
||
[adminBaseRoutePath + '/crud/crud']: ['./backend/${lang}/crud/log.ts', './backend/${lang}/crud/state.ts'],
|
||
/** 推送测试三页:共享 test.push.* 文案(见 PushChannelTestPage.vue) */
|
||
[adminBaseRoutePath + '/test/pushGamePeriod']: ['./backend/${lang}/test/push.ts'],
|
||
[adminBaseRoutePath + '/test/pushOperationNotice']: ['./backend/${lang}/test/push.ts'],
|
||
[adminBaseRoutePath + '/test/pushPrivateUser']: ['./backend/${lang}/test/push.ts'],
|
||
}
|