Skip to content

Commit

Permalink
Update index.en-US.md (#19848)
Browse files Browse the repository at this point in the history
Improved the grammar of the documentation.
  • Loading branch information
JosiahRooney authored and yoyo837 committed Nov 20, 2019
1 parent 3072787 commit c57d7f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/config-provider/index.en-US.md
Expand Up @@ -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';
Expand All @@ -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' }}>
Expand All @@ -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.

0 comments on commit c57d7f3

Please sign in to comment.