ant-design/docs/react/i18n.en-US.md
Yusuke Ito b342dbefa2 Japanese locale (#5529)
* add ja_JP translation

* fix Japanese locale

* fix i18n docs

* update rc-pagination version

* add locale test for ja_JP
2017-03-28 15:11:33 +08:00

1.0 KiB

order title
8 Internationalization

The default language of antd@2.x is still Chinese yet. If you want to use English or other languages, you can follow instruction below.

LocaleProvider

antd provide a React Compnent LocaleProvider for configuring antd locale text globally.

import enUS from 'antd/lib/locale-provider/en_US';

return (
  <LocaleProvider locale={enUS}>
    <App />
  </LocaleProvider>
);

Supported languages:

  • English - en_US
  • French (Belgium) - fr_BE
  • Russian - ru_RU
  • Spanish - es_ES
  • German - de_DE
  • Czech - cs_CZ
  • Portuguese (Brazil) - pt_BR
  • Korean - ko_KR
  • Swedish - sv_SE
  • Dutch - nl_NL
  • Catalan - ca_ES
  • Japanese - ja_JP

See usage and contributing way of a new locale package at LocaleProvider.

i18n sample

We also provide you a complete sample of internationalization usage, which is using react-intl and LocaleProvider: ant-design/intl-example.