diff --git a/components/config-provider/index.en-US.md b/components/config-provider/index.en-US.md index 14e3f2c75a..adaa004b57 100644 --- a/components/config-provider/index.en-US.md +++ b/components/config-provider/index.en-US.md @@ -44,3 +44,9 @@ Some component use dynamic style to support wave effect. You can config `csp` pr | locale | language package setting, you can find the packages in [antd/es/locale](http://unpkg.com/antd/es/locale/) | object | 3.21.0 | | prefixCls | set prefix class | string | ant | 3.12.0 | | pageHeader | Unify the ghost of pageHeader ,Ref [pageHeader](<(/components/page-header)> | { ghost:boolean } | 'true' | 3.24.0 | + +## FAQ + +#### Locale problem is still existed in DatePicker even ConfigProvider `locale` is used? + +Please make sure you set moment locale by `moment.locale('zh-cn')`, or you don't have two moment of different version. diff --git a/components/config-provider/index.zh-CN.md b/components/config-provider/index.zh-CN.md index fe4560c5d6..c681929d26 100644 --- a/components/config-provider/index.zh-CN.md +++ b/components/config-provider/index.zh-CN.md @@ -45,3 +45,9 @@ return ( | locale | 语言包配置,语言包可到 [antd/es/locale](http://unpkg.com/antd/es/locale/) 目录下寻找 | object | - | 3.21.0 | | prefixCls | 设置统一样式前缀 | string | ant | 3.12.0 | | pageHeader | 统一设置 pageHeader 的 ghost,参考 [pageHeader](<(/components/page-header)>) | { ghost: boolean } | 'true' | 3.24.0 | + +## FAQ + +#### 为什么我使用了 ConfigProvider `locale`,时间类组件的国际化还有问题? + +请检查是否设置了 `moment.locale('zh-cn')`,或者是否有两个版本的 moment 共存。