diff --git a/AUTHORS.txt b/AUTHORS.txt index 94314a7f7b..32b12f0edb 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -284,6 +284,7 @@ Pyroboomka Qiaosen Huang Qingrong Ke Rafael Cosman +Rahul Gurung Rallets Ramsés Moreno Randy diff --git a/components/calendar/locale/kn_IN.tsx b/components/calendar/locale/kn_IN.tsx new file mode 100644 index 0000000000..958c45a7b1 --- /dev/null +++ b/components/calendar/locale/kn_IN.tsx @@ -0,0 +1,2 @@ +import kn_IN from '../../date-picker/locale/kn_IN'; +export default kn_IN; diff --git a/components/date-picker/locale/kn_IN.tsx b/components/date-picker/locale/kn_IN.tsx new file mode 100644 index 0000000000..c58aa7d51f --- /dev/null +++ b/components/date-picker/locale/kn_IN.tsx @@ -0,0 +1,19 @@ +import CalendarLocale from 'rc-calendar/lib/locale/kn_IN'; +import TimePickerLocale from '../../time-picker/locale/kn_IN'; + +// 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 5f39e267d0..183e378618 100644 --- a/components/locale-provider/__tests__/index.test.js +++ b/components/locale-provider/__tests__/index.test.js @@ -35,6 +35,7 @@ import huHU from '../hu_HU'; import isIS from '../is_IS'; import itIT from '../it_IT'; import jaJP from '../ja_JP'; +import knIN from '../kn_IN'; import koKR from '../ko_KR'; import kuIQ from '../ku_IQ'; import mnMN from '../mn_MN'; @@ -79,6 +80,7 @@ const locales = [ isIS, itIT, jaJP, + knIN, koKR, kuIQ, mnMN, diff --git a/components/locale-provider/kn_IN.tsx b/components/locale-provider/kn_IN.tsx new file mode 100644 index 0000000000..03ced92cc3 --- /dev/null +++ b/components/locale-provider/kn_IN.tsx @@ -0,0 +1,50 @@ +import Pagination from 'rc-pagination/lib/locale/kn_IN'; +import DatePicker from '../date-picker/locale/kn_IN'; +import TimePicker from '../time-picker/locale/kn_IN'; +import Calendar from '../calendar/locale/kn_IN'; + +export default { + locale: 'kn', + Pagination, + DatePicker, + TimePicker, + Calendar, + // locales for all comoponents + global: { + placeholder: 'ದಯವಿಟ್ಟು ಆರಿಸಿ', + }, + Table: { + filterTitle: 'ಪಟ್ಟಿ ಸೋಸಿ', + filterConfirm: 'ಸರಿ', + filterReset: 'ಮರುಹೊಂದಿಸಿ', + emptyText: 'ಮಾಹಿತಿ ಇಲ್ಲ', + selectAll: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ಆಯ್ಕೆಮಾಡಿ', + selectInvert: 'ಪ್ರಸ್ತುತ ಪುಟವನ್ನು ತಿರುಗಿಸಿ', + sortTitle: 'ವಿಂಗಡಿಸಿ', + }, + Modal: { + okText: 'ಸರಿ', + cancelText: 'ರದ್ದು', + justOkText: 'ಸರಿ', + }, + Popconfirm: { + okText: 'ಸರಿ', + cancelText: 'ರದ್ದು', + }, + Transfer: { + titles: ['', ''], + notFoundContent: 'ದೊರೆತಿಲ್ಲ', + searchPlaceholder: 'ಇಲ್ಲಿ ಹುಡುಕಿ', + itemUnit: 'ವಿಷಯ', + itemsUnit: 'ವಿಷಯಗಳು', + }, + Select: { + notFoundContent: 'ದೊರೆತಿಲ್ಲ', + }, + Upload: { + uploading: 'ಏರಿಸಿ...', + removeFile: 'ಫೈಲ್ ತೆಗೆದುಹಾಕಿ', + uploadError: 'ಏರಿಸುವ ದೋಷ', + previewFile: 'ಫೈಲ್ ಮುನ್ನೋಟ', + }, +}; diff --git a/components/time-picker/locale/kn_IN.tsx b/components/time-picker/locale/kn_IN.tsx new file mode 100644 index 0000000000..7d54cd70c2 --- /dev/null +++ b/components/time-picker/locale/kn_IN.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 1a9bddb201..5eabfec281 100644 --- a/docs/react/i18n.en-US.md +++ b/docs/react/i18n.en-US.md @@ -49,6 +49,7 @@ Supported languages: |Italian|it_IT| |Icelandic|is_IS| |Japanese|ja_JP| +|Kannada|kn_IN| |Korean|ko_KR| |Norwegian|nb_NO| |Nepal|ne_NP| diff --git a/docs/react/i18n.zh-CN.md b/docs/react/i18n.zh-CN.md index eaebd16215..b7f12fde5e 100644 --- a/docs/react/i18n.zh-CN.md +++ b/docs/react/i18n.zh-CN.md @@ -47,6 +47,7 @@ return ( |印度尼西亚语|id_ID| |意大利语|it_IT| |日语|ja_JP| +|卡纳达语|kn_IN| |韩语/朝鲜语|ko_KR| |挪威|nb_NO| |尼泊尔语|ne_NP|