2017-03-12 15:20:25 +08:00
---
2017-03-13 11:13:12 +08:00
order: 8
2017-03-12 15:20:25 +08:00
title: Internationalization
---
2017-10-06 16:08:03 +08:00
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.
2017-03-12 15:20:25 +08:00
## LocaleProvider
2017-10-06 16:08:03 +08:00
antd provides a React Component [LocaleProvider ](/components/locale-provider ) for configuring antd locale text globally.
2017-03-12 15:20:25 +08:00
```jsx
2017-05-10 01:24:59 +08:00
import { LocaleProvider } from 'antd';
2017-03-12 15:20:25 +08:00
import enUS from 'antd/lib/locale-provider/en_US';
return (
< LocaleProvider locale = {enUS} >
< App / >
< / LocaleProvider >
);
```
2017-10-06 16:08:03 +08:00
Note: `en_US` is the filename, follow below.
2017-06-15 17:34:38 +08:00
2017-03-12 15:20:25 +08:00
Supported languages:
2017-06-15 17:34:38 +08:00
|Language|Filename|
|---|---|
|Bulgarian|bg_BG|
|Catalan|ca_ES|
|Chinese (Traditional)|zh_TW|
|Czech|cs_CZ|
|Dutch (Belgium)|nl_BE|
|Dutch|nl_NL|
|English (Global)|en_GB|
|English|en_US|
|Estonian|et_EE|
|Finnish|fi_FI|
|French (Belgium)|fr_BE|
|French (France)|fr_FR|
|German|de_DE|
2017-09-21 16:50:47 +08:00
|Greek|el_GR|
2017-06-15 17:34:38 +08:00
|Italian|it_IT|
|Japanese|ja_JP|
|Korean|ko_KR|
2017-08-09 20:36:01 +08:00
|Norwegian|nb_NO|
2017-07-18 13:25:38 +08:00
|Persian|fa_IR|
2017-06-15 17:34:38 +08:00
|Polish|pl_PL|
|Portuguese (Brazil)|pt_BR|
2017-09-22 10:02:01 +08:00
|Portuguese|pt_PT|
2017-06-15 17:34:38 +08:00
|Russian|ru_RU|
2017-08-15 09:24:30 +08:00
|Serbian|sr_RS|
2017-06-15 17:34:38 +08:00
|Slovak|sk_SK|
|Spanish|es_ES|
|Swedish|sv_SE|
|Turkish|tr_TR|
|Vietnamese|vi_VN|
2017-07-04 17:54:36 +08:00
|Thai|th_TH|
2017-03-12 15:20:25 +08:00
2017-10-06 16:08:03 +08:00
See usage and ways to contribute a new locale package at [LocaleProvider ](/components/locale-provider ).
2017-03-12 15:20:25 +08:00
## i18n sample
2017-03-13 11:13:12 +08:00
We also provide you a complete sample of internationalization usage, which is using [react-intl ](https://github.com/yahoo/react-intl ) and LocaleProvider: [ant-design/intl-example ](https://github.com/ant-design/intl-example ).