You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
275 B
22 lines
275 B
9 years ago
|
# LocaleProvider
|
||
|
|
||
|
- category: Components
|
||
|
- chinese: 国际化
|
||
|
- cols: 1
|
||
|
|
||
|
---
|
||
|
|
||
|
为组件文案提供统一的国际化配置功能。
|
||
|
|
||
|
## API
|
||
|
|
||
|
Wrap your App with `LocaleProvider` once.
|
||
|
|
||
|
```jsx
|
||
|
<LocaleProvider locale={enUS}>
|
||
|
<App />
|
||
|
</LocaleProvider>
|
||
|
```
|
||
|
|
||
|
### Add a language
|