mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-19 14:53:16 +08:00
docs: Update i18n.zh-CN.md (#48138)
add two lines for import dayjs i18n. that's an explain for date-picker's i18n wasn't effective Signed-off-by: zhuxq <46339071+zxq08@users.noreply.github.com>
This commit is contained in:
parent
96f0ec60c5
commit
bc2c1e15b8
@ -13,6 +13,8 @@ antd 提供了一个 React 组件 [ConfigProvider](/components/config-provider-c
|
||||
|
||||
```jsx
|
||||
import zhCN from 'antd/locale/zh_CN';
|
||||
// for date-picker i18n
|
||||
import 'dayjs/locale/zh-cn';
|
||||
|
||||
return (
|
||||
<ConfigProvider locale={zhCN}>
|
||||
|
Loading…
Reference in New Issue
Block a user