Antd pro date component English problem

Let’s look at the problem first
insert image description here
. The reason for this problem is that moment.js is configured in English, and the repair method is also very simple. Whichever file uses the date and time component, just import it in that component, and the Chinese package of moment.js is enough ( Remember not to import in app.tsx, otherwise it will not take effect)

import 'moment/locale/zh-cn';

Guess you like

Origin blog.csdn.net/weixin_40639095/article/details/129981956