diff --git a/components/calendar/locale/mr_IN.ts b/components/calendar/locale/mr_IN.ts new file mode 100644 index 0000000000..8e2e2b9fe6 --- /dev/null +++ b/components/calendar/locale/mr_IN.ts @@ -0,0 +1,3 @@ +import mrIN from '../../date-picker/locale/mr_IN'; + +export default mrIN; diff --git a/components/date-picker/locale/mr_IN.ts b/components/date-picker/locale/mr_IN.ts new file mode 100644 index 0000000000..af863e7e92 --- /dev/null +++ b/components/date-picker/locale/mr_IN.ts @@ -0,0 +1,29 @@ +import CalendarLocale from '@rc-component/picker/lib/locale/mr_IN'; + +import TimePickerLocale from '../../time-picker/locale/mr_IN'; +import type { PickerLocale } from '../generatePicker'; + +// Merge into a locale object +const locale: PickerLocale = { + lang: { + placeholder: 'दिनांक निवडा', + yearPlaceholder: 'वर्ष निवडा', + quarterPlaceholder: 'तिमाही निवडा', + monthPlaceholder: 'महिना निवडा', + weekPlaceholder: 'आठवडा निवडा', + rangePlaceholder: ['प्रारंभ तारीख', 'शेवटची तारीख'], + rangeYearPlaceholder: ['प्रारंभ वर्ष', 'शेवटचे वर्ष'], + rangeQuarterPlaceholder: ['सुरुवातीचा तिमाही', 'शेवटचा तिमाही'], + rangeMonthPlaceholder: ['सुरुवातीचा महिना', 'शेवटचा महिना'], + rangeWeekPlaceholder: ['सुरुवातीचा आठवडा', 'शेवटचा आठवडा'], + ...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/__tests__/__snapshots__/index.test.tsx.snap b/components/locale/__tests__/__snapshots__/index.test.tsx.snap index 7e721ef043..d6ed72fa33 100644 --- a/components/locale/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/locale/__tests__/__snapshots__/index.test.tsx.snap @@ -230730,6 +230730,5327 @@ exports[`Locale Provider should display the text as mn-mn 1`] = ` `; +exports[`Locale Provider should display the text as mr 1`] = ` +
| + रवि + | ++ सोम + | ++ मंगळ + | ++ बुध + | ++ गुरु + | ++ शुक्र + | ++ शनि + | +
|---|---|---|---|---|---|---|
|
+
+
+
+ 27
+
+
+ |
+
+
+
+
+ 28
+
+
+ |
+
+
+
+
+ 29
+
+
+ |
+
+
+
+
+ 30
+
+
+ |
+
+
+
+
+ 31
+
+
+ |
+
+
+
+
+ 01
+
+
+ |
+
+
+
+
+ 02
+
+
+ |
+
|
+
+
+
+ 03
+
+
+ |
+
+
+
+
+ 04
+
+
+ |
+
+
+
+
+ 05
+
+
+ |
+
+
+
+
+ 06
+
+
+ |
+
+
+
+
+ 07
+
+
+ |
+
+
+
+
+ 08
+
+
+ |
+
+
+
+
+ 09
+
+
+ |
+
|
+
+
+
+ 10
+
+
+ |
+
+
+
+
+ 11
+
+
+ |
+
+
+
+
+ 12
+
+
+ |
+
+
+
+
+ 13
+
+
+ |
+
+
+
+
+ 14
+
+
+ |
+
+
+
+
+ 15
+
+
+ |
+
+
+
+
+ 16
+
+
+ |
+
|
+
+
+
+ 17
+
+
+ |
+
+
+
+
+ 18
+
+
+ |
+
+
+
+
+ 19
+
+
+ |
+
+
+
+
+ 20
+
+
+ |
+
+
+
+
+ 21
+
+
+ |
+
+
+
+
+ 22
+
+
+ |
+
+
+
+
+ 23
+
+
+ |
+
|
+
+
+
+ 24
+
+
+ |
+
+
+
+
+ 25
+
+
+ |
+
+
+
+
+ 26
+
+
+ |
+
+
+
+
+ 27
+
+
+ |
+
+
+
+
+ 28
+
+
+ |
+
+
+
+
+ 29
+
+
+ |
+
+
+
+
+ 30
+
+
+ |
+
|
+
+
+
+ 01
+
+
+ |
+
+
+
+
+ 02
+
+
+ |
+
+
+
+
+ 03
+
+
+ |
+
+
+
+
+ 04
+
+
+ |
+
+
+
+
+ 05
+
+
+ |
+
+
+
+
+ 06
+
+
+ |
+
+
+
+
+ 07
+
+
+ |
+
|
+
+
+ Name
+
+
+
+
+
+
+
+ |
+ + Age + | +
|---|---|
|
+
+
+
+
+
+
+ कोणतीही माहिती नाही
+
+ |
+ |
+ Locale Modal +
+