Ant-design-pro: 🧐[问题]V4版本移除国际化之后,但是希望antd默认中文

Created on 5 Jun 2020  ·  2Comments  ·  Source: ant-design/ant-design-pro

🧐 问题描述
1、执行了npm run i18n-remove
2、删除了locales文件夹

antd的国际化也没了,现在希望antd能默认成中文就ok了!

看到其他回答说包一层antd的ConfigProvider,具体应该在哪加了?

💻 示例代码

🚑 其他信息

🕵🏻‍♀️ question

Most helpful comment

给新人指坑:layouts的BasicLayout.tsx. 简单的2行代码。

import zhCN from 'antd/es/locale/zh_CN';



All 2 comments

4.x 版本可以在 layout 中增加。使用方式与 antd 中相同

5.x 版本 在 app.ts 中配置
文档看这里 https://github.com/umijs/plugins/pull/246

给新人指坑:layouts的BasicLayout.tsx. 简单的2行代码。

import zhCN from 'antd/es/locale/zh_CN';



Was this page helpful?
0 / 5 - 0 ratings

Related issues

yjz1004 picture yjz1004  ·  3Comments

ghost picture ghost  ·  3Comments

kaoding picture kaoding  ·  3Comments

yaoleiroyal picture yaoleiroyal  ·  3Comments

happier2 picture happier2  ·  3Comments