Skip to content

Commit

Permalink
fix(DatePicker): zh-CN is not work in DatePicker (#3273)
Browse files Browse the repository at this point in the history
* fix(DatePicker): zh-CN is not work in DatePicker

* fix(DatePicker): locale zh-CN is not work in DatePicker
  • Loading branch information
zwtvip authored Nov 13, 2023
1 parent 2991bb1 commit 6d047fb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/locales/lang/zh_CN.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
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<Recordable>, 'zh-CN'),
antdLocale,
antdLocale: {
...antdLocale,
DatePicker: deepMerge(
antdLocale.DatePicker,
genMessage(modules as Recordable<Recordable>, 'zh-CN').antdLocale.DatePicker,
),
},
},
};

0 comments on commit 6d047fb

Please sign in to comment.