|
|
|
@ -3,8 +3,8 @@ order: 8
|
|
|
|
|
title: Internationalization
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
The default language of `antd@2.x` is Chinese as of yet.
|
|
|
|
|
If you want to use English or other languages, you can follow the instructions below.
|
|
|
|
|
The default language of `antd@2.x` is English as of yet.
|
|
|
|
|
If you want to use other languages, you can follow the instructions below.
|
|
|
|
|
|
|
|
|
|
## LocaleProvider
|
|
|
|
|
|
|
|
|
@ -12,16 +12,16 @@ antd provides a React Component [LocaleProvider](/components/locale-provider) fo
|
|
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
|
import { LocaleProvider } from 'antd';
|
|
|
|
|
import enUS from 'antd/lib/locale-provider/en_US';
|
|
|
|
|
import frFR from 'antd/lib/locale-provider/fr_FR';
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<LocaleProvider locale={enUS}>
|
|
|
|
|
<LocaleProvider locale={frFR}>
|
|
|
|
|
<App />
|
|
|
|
|
</LocaleProvider>
|
|
|
|
|
);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Note: `en_US` is the filename, follow below.
|
|
|
|
|
Note: `fr_FR` is the filename, follow below.
|
|
|
|
|
|
|
|
|
|
Supported languages:
|
|
|
|
|
|
|
|
|
@ -30,6 +30,7 @@ Supported languages:
|
|
|
|
|
|Bulgarian|bg_BG|
|
|
|
|
|
|Catalan|ca_ES|
|
|
|
|
|
|Chinese (Traditional)|zh_TW|
|
|
|
|
|
|Chinese (Simplified)|zh_CN|
|
|
|
|
|
|Czech|cs_CZ|
|
|
|
|
|
|Dutch (Belgium)|nl_BE|
|
|
|
|
|
|Dutch|nl_NL|
|
|
|
|
@ -55,9 +56,9 @@ Supported languages:
|
|
|
|
|
|Slovak|sk_SK|
|
|
|
|
|
|Spanish|es_ES|
|
|
|
|
|
|Swedish|sv_SE|
|
|
|
|
|
|Thai|th_TH|
|
|
|
|
|
|Turkish|tr_TR|
|
|
|
|
|
|Vietnamese|vi_VN|
|
|
|
|
|
|Thai|th_TH|
|
|
|
|
|
|
|
|
|
|
See usage and ways to contribute a new locale package at [LocaleProvider](/components/locale-provider).
|
|
|
|
|
|
|
|
|
|