From 7df095414cf1c8c64e2444bb6d4ef0d2312e1296 Mon Sep 17 00:00:00 2001 From: Pierre Neter Date: Thu, 15 Jun 2017 16:34:38 +0700 Subject: [PATCH] docs: update i18n support 24 language (#6483) Signed-off-by: Pierre Neter --- components/locale-provider/vi_VN.tsx | 2 +- docs/react/i18n.en-US.md | 44 ++++++++++++++++++---------- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/components/locale-provider/vi_VN.tsx b/components/locale-provider/vi_VN.tsx index 384e3174a4..bec4232e09 100644 --- a/components/locale-provider/vi_VN.tsx +++ b/components/locale-provider/vi_VN.tsx @@ -1,7 +1,7 @@ import moment from 'moment'; moment.locale('vi'); -import Pagination from 'rc-pagination/lib/locale/en_US'; +import Pagination from 'rc-pagination/lib/locale/vi_VN'; import DatePicker from '../date-picker/locale/vi_VN'; import TimePicker from '../time-picker/locale/vi_VN'; import Calendar from '../calendar/locale/vi_VN'; diff --git a/docs/react/i18n.en-US.md b/docs/react/i18n.en-US.md index 8b03382d66..1760ae33dd 100644 --- a/docs/react/i18n.en-US.md +++ b/docs/react/i18n.en-US.md @@ -21,24 +21,36 @@ return ( ); ``` +Note: `en_US` is filename, follow below: + 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 -- Turkish - tr_TR -- Slovak - sk_SK -- Estonian - et_EE -- Chinese (Traditional) - zh_TW +|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| +|Italian|it_IT| +|Japanese|ja_JP| +|Korean|ko_KR| +|Polish|pl_PL| +|Portuguese (Brazil)|pt_BR| +|Russian|ru_RU| +|Slovak|sk_SK| +|Spanish|es_ES| +|Swedish|sv_SE| +|Turkish|tr_TR| +|Vietnamese|vi_VN| See usage and contributing way of a new locale package at [LocaleProvider](/components/locale-provider).