mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
update LocaleProvider documentation
This commit is contained in:
parent
490a90b46f
commit
dda37d873b
@ -20,9 +20,11 @@ import enUS from 'antd/lib/locale-provider/en_US';
|
||||
return <LocaleProvider locale={enUS}><App /></LocaleProvider>;
|
||||
```
|
||||
|
||||
All locale can be find in [here](https://github.com/ant-design/ant-design/blob/master/components/locale-provider/).
|
||||
|
||||
### Add a language
|
||||
|
||||
We supply an English locale package. Other language users can create a locale package based on [en_US](https://github.com/ant-design/ant-design/blob/26b1f37392a278285aec6c573b99c6feea09e218/components/locale-provider/en_US.js) and send us a pull request.
|
||||
If you can't find your language, you are welcome to create a locale package based on [en_US](https://github.com/ant-design/ant-design/blob/master/components/locale-provider/en_US.tsx) and send us a pull request.
|
||||
|
||||
### Other localization needs
|
||||
|
||||
|
@ -21,9 +21,11 @@ import enUS from 'antd/lib/locale-provider/en_US';
|
||||
return <LocaleProvider locale={enUS}><App /></LocaleProvider>;
|
||||
```
|
||||
|
||||
### Add a language
|
||||
语言包可以在 [这里](https://github.com/ant-design/ant-design/blob/master/components/locale-provider/) 找到。
|
||||
|
||||
We supply an English locale package. Other language users can create a locale package based on [en_US](https://github.com/ant-design/ant-design/blob/26b1f37392a278285aec6c573b99c6feea09e218/components/locale-provider/en_US.js) and send us a pull request.
|
||||
### 增加语言包
|
||||
|
||||
如果你找不到你需要的语言包,欢迎你在 [英文语言包](https://github.com/ant-design/ant-design/blob/master/components/locale-provider/en_US.tsx) 的基础上创建一个新的语言包,并给我们 Pull Request。
|
||||
|
||||
### 其他国际化需求
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user