import { genMessage } from '../helper'; import antdLocale from 'ant-design-vue/es/locale/zh_CN'; import { deepMerge } from '@/utils'; const modules = import.meta.glob('./zh-CN/**/*.json', { eager: true }); export default { message: { ...genMessage(modules as Recordable, 'zh-CN'), antdLocale: { ...antdLocale, DatePicker: deepMerge( antdLocale.DatePicker, genMessage(modules as Recordable, 'zh-CN').antdLocale.DatePicker, ), }, }, };