import { adminBaseRoutePath } from '/@/router/static/adminBase'

/*
 * 语言包按需加载映射表
 * 使用固定字符串 ${lang} 指代当前语言
 * key 为页面 path，value 为语言包文件相对路径，访问时，按需自动加载映射表的语言包，同时加载 path 对应的语言包（若存在）
 */
export default {
    '/': ['./frontend/${lang}/index.ts'],
    [adminBaseRoutePath + '/user/rule']: ['./backend/${lang}/auth/rule.ts'],
    [adminBaseRoutePath + '/user/scoreLog']: ['./backend/${lang}/user/moneyLog.ts'],
    [adminBaseRoutePath + '/crud/crud']: ['./backend/${lang}/crud/log.ts', './backend/${lang}/crud/state.ts'],
    [adminBaseRoutePath + '/mall/item']: ['./backend/${lang}/mall/item.ts'],
    [adminBaseRoutePath + '/mall/item/index']: ['./backend/${lang}/mall/item.ts'],
    [adminBaseRoutePath + '/mall.Item']: ['./backend/${lang}/mall/item.ts'],
    [adminBaseRoutePath + '/mall.Item/index']: ['./backend/${lang}/mall/item.ts'],
}
