Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

antd3 umi2.9 dayjs 1.9.3 DatePicker.RangePicker 月份和星期显示为 英文 #1155

Closed
ado5 opened this issue Oct 20, 2020 · 2 comments
Closed

Comments

@ado5
Copy link

ado5 commented Oct 20, 2020

umirc :

    config.plugin('moment2dayjs').use('antd-dayjs-webpack-plugin', [
      {
        preset: 'antdv3',
      },
    ])


    config.plugin('ignore').use(new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)) //忽略/moment/locale下的所有文件
import 'dayjs/locale/zh-cn'
 dayjs.locale('zh-cn')

设置后,日期选择器还是 月份和星期是 英文, 其他是中文

base64str

@iamkun
Copy link
Owner

iamkun commented Oct 21, 2020

Please set the Day.js locale correctly/.
https://ant.design/components/date-picker/#Localization

@ado5
Copy link
Author

ado5 commented Oct 21, 2020

Please set the Day.js locale correctly/.
https://ant.design/components/date-picker/#Localization

Thanks. Done.

@iamkun iamkun closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants