Update index.en-US.md (#19848)

Improved the grammar of the documentation.
This commit is contained in:
Josiah Rooney 2019-11-20 15:39:57 -08:00 committed by Amumu
parent 3072787839
commit c57d7f3a6c

View File

@ -9,7 +9,7 @@ title: ConfigProvider
## Usage
This component provides a configuration to all React components underneath itself via the [context API](https://facebook.github.io/react/docs/context.html), In the render tree all components will have access to the provided config.
This component provides a configuration to all React components underneath itself via the [context API](https://facebook.github.io/react/docs/context.html). In the render tree all components will have access to the provided config.
```jsx
import { ConfigProvider } from 'antd';
@ -25,7 +25,7 @@ return (
### Content Security Policy
Some component use dynamic style to support wave effect. You can config `csp` prop if Content Security Policy (CSP) is enabled:
Some components use dynamic style to support wave effect. You can config `csp` prop if Content Security Policy (CSP) is enabled:
```jsx
<ConfigProvider csp={{ nonce: 'YourNonceCode' }}>
@ -47,6 +47,6 @@ Some component use dynamic style to support wave effect. You can config `csp` pr
## FAQ
#### Locale problem is still existed in DatePicker even ConfigProvider `locale` is used?
#### Does the locale problem still exist in DatePicker even if 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.
Please make sure you set moment locale by `moment.locale('zh-cn')` or that you don't have two different versions of moment.