Cloud Zhang
2024-05-16 f4c05057fb284287997775f373c33f73228a02c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { genMessage } from '../helper';
import antdLocale from 'ant-design-vue/es/locale/en_US';
import { defHttp } from '/@/utils/http/axios';
import { Api } from '../../api/sys/language';
 
const modules = import.meta.globEager('./en/**/*.ts');
export default {
  message: {
    ...genMessage(modules, 'en'),
    antdLocale,
  },
  apiMessage: {
    ...(await defHttp.get({ url: `${Api.GetLanguage}?locale=en` }, { isTransformResponse: false })),
    antdLocale,
  },
  dateLocale: null,
  dateLocaleName: 'en',
};