Skip to content

Commit bc2c1e1

Browse files
authored
docs: Update i18n.zh-CN.md (ant-design#48138)
add two lines for import dayjs i18n. that's an explain for date-picker's i18n wasn't effective Signed-off-by: zhuxq <[email protected]>
1 parent 96f0ec6 commit bc2c1e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/react/i18n.zh-CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ antd 提供了一个 React 组件 [ConfigProvider](/components/config-provider-c
1313

1414
```jsx
1515
import zhCN from 'antd/locale/zh_CN';
16+
// for date-picker i18n
17+
import 'dayjs/locale/zh-cn';
1618

1719
return (
1820
<ConfigProvider locale={zhCN}>

0 commit comments

Comments
 (0)