vueComponent / ant-design-vue

🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
https://antdv.com/
Other
20.08k stars 3.78k forks source link

日历组件月份不显示中文 #7770

Open shenlanchenwei opened 1 month ago

shenlanchenwei commented 1 month ago

Version

4.2.3

Environment

MAC

Reproduction link

https://antdv.com/components/calendar-cn

Steps to reproduce

安装最新版本的dayjs,设置中文后,日历月份选择不会显示中文,而是显示英文,年份正常 我看官方引用的是"dayjs": "^1.10.5" 正常,但是如果安装的最新版本dayjs就会显示异常

What is expected?

安装最新版本dayjs,设置语言为中文后日历组件可以显示中文而不是英文

What is actually happening?

安装最新版本dayjs,设置语言为中文后日历组件部分中文,部分英文

holiy930561 commented 1 month ago

同问题,如何修复?

shenlanchenwei commented 1 month ago

day 组件退回"dayjs": "^1.10.5" 就可以了,不能用最新版本

yinmang1215 commented 3 weeks ago

npm ls dayjs 查看dayjs版本,项目中dayjs需要与ant-design-vue中的保持一致

wiexin commented 3 weeks ago

同问 这个问题是否有修复计划啊

Gluttonys commented 5 days ago

https://www.antdv.com/components/config-provider-cn