diff --git a/components/calendar/locale/he_IL.tsx b/components/calendar/locale/he_IL.tsx new file mode 100644 index 0000000000..740b2b40b5 --- /dev/null +++ b/components/calendar/locale/he_IL.tsx @@ -0,0 +1,2 @@ +import he_IL from '../../date-picker/locale/he_IL'; +export default he_IL; diff --git a/components/date-picker/locale/he_IL.tsx b/components/date-picker/locale/he_IL.tsx new file mode 100644 index 0000000000..d48d247646 --- /dev/null +++ b/components/date-picker/locale/he_IL.tsx @@ -0,0 +1,19 @@ +import CalendarLocale from 'rc-calendar/lib/locale/en_US'; +import TimePickerLocale from '../../time-picker/locale/he_IL'; + +// Merge into a locale object +const locale = { + lang: { + placeholder: 'בחר תאריך', + rangePlaceholder: ['תאריך התחלה', 'תאריך סיום'], + ...CalendarLocale, + }, + timePickerLocale: { + ...TimePickerLocale, + }, +}; + +// All settings at: +// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json + +export default locale; diff --git a/components/locale-provider/__tests__/index.test.js b/components/locale-provider/__tests__/index.test.js index 8485b6d3a8..8dc4e13057 100644 --- a/components/locale-provider/__tests__/index.test.js +++ b/components/locale-provider/__tests__/index.test.js @@ -42,8 +42,9 @@ import ukUA from '../uk_UA'; import zhCN from '../zh_CN'; import kuIQ from '../ku_IQ'; import mnMN from '../mn_MN'; +import heIL from '../he_IL'; -const locales = [enUS, ptBR, ptPT, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, etEE, skSK, jaJP, trTR, zhTW, fiFI, plPL, bgBG, enGB, frFR, nlBE, itIT, viVN, thTH, faIR, elGR, nbNO, srRS, slSI, isIS, arEG, ukUA, zhCN, kuIQ, mnMN]; +const locales = [enUS, ptBR, ptPT, ruRU, esES, svSE, frBE, deDE, nlNL, caES, csCZ, koKR, etEE, skSK, jaJP, trTR, zhTW, fiFI, plPL, bgBG, enGB, frFR, nlBE, itIT, viVN, thTH, faIR, elGR, nbNO, srRS, slSI, isIS, arEG, ukUA, zhCN, kuIQ, mnMN, heIL]; const { Option } = Select; const { RangePicker } = DatePicker; diff --git a/components/locale-provider/he_IL.tsx b/components/locale-provider/he_IL.tsx new file mode 100644 index 0000000000..0cd62da28b --- /dev/null +++ b/components/locale-provider/he_IL.tsx @@ -0,0 +1,44 @@ +import Pagination from 'rc-pagination/lib/locale/en_US'; +import DatePicker from '../date-picker/locale/he_IL'; +import TimePicker from '../time-picker/locale/he_IL'; +import Calendar from '../calendar/locale/he_IL'; + +export default { + locale: 'he', + Pagination, + DatePicker, + TimePicker, + Calendar, + Table: { + filterTitle: 'תפריט סינון', + filterConfirm: 'אישור', + filterReset: 'איפוס', + emptyText: 'אין מידע', + selectAll: 'בחר הכל', + selectInvert: 'הפוך בחירה', + }, + Modal: { + okText: 'אישור', + cancelText: 'ביטול', + justOkText: 'אישור', + }, + Popconfirm: { + okText: 'אישור', + cancelText: 'ביטול', + }, + Transfer: { + notFoundContent: 'לא נמצא', + searchPlaceholder: 'חפש כאן', + itemUnit: 'פריט', + itemsUnit: 'פריטים', + }, + Select: { + notFoundContent: 'לא נמצא', + }, + Upload: { + uploading: 'מעלה...', + removeFile: 'הסר קובץ', + uploadError: 'שגיאת העלאה', + previewFile: 'הצג קובץ', + }, +}; diff --git a/components/time-picker/locale/he_IL.tsx b/components/time-picker/locale/he_IL.tsx new file mode 100644 index 0000000000..6f0cf1a31f --- /dev/null +++ b/components/time-picker/locale/he_IL.tsx @@ -0,0 +1,5 @@ +const locale = { + placeholder: 'בחר שעה', +}; + +export default locale; diff --git a/docs/react/i18n.en-US.md b/docs/react/i18n.en-US.md index 0de56e3592..25823708b3 100644 --- a/docs/react/i18n.en-US.md +++ b/docs/react/i18n.en-US.md @@ -27,6 +27,7 @@ Supported languages: |Language|Filename| |---|---| +|Hebrew|he_IL| |Arabic|ar_EG| |Bulgarian|bg_BG| |Catalan|ca_ES| diff --git a/docs/react/i18n.zh-CN.md b/docs/react/i18n.zh-CN.md index 8f17f24560..7ad1f33736 100644 --- a/docs/react/i18n.zh-CN.md +++ b/docs/react/i18n.zh-CN.md @@ -25,6 +25,7 @@ return ( |语言|文件名| |---|---| +|希伯来语|he_IL| |阿拉伯|ar_EG| |保加利亚语|bg_BG| |加泰罗尼亚语|ca_ES|