From c176de8b5214d9ff991ce04372dd5bac10470568 Mon Sep 17 00:00:00 2001 From: divyeshagrawal <138372682+divyeshagrawal@users.noreply.github.com> Date: Sun, 28 Sep 2025 14:54:37 +0530 Subject: [PATCH] feat: Add Marathi translations (#55179) * feat: Add Marathi translations * feat: Update marathi translations * feat: Update translations * test: Update snapshot tests --- components/calendar/locale/mr_IN.ts | 3 + components/date-picker/locale/mr_IN.ts | 29 + .../__snapshots__/index.test.tsx.snap | 5321 +++++++++++++++++ components/locale/__tests__/index.test.tsx | 2 + components/locale/mr_IN.ts | 138 + components/time-picker/locale/mr_IN.ts | 8 + docs/react/i18n.en-US.md | 1 + docs/react/i18n.zh-CN.md | 2 + package.json | 6 +- 9 files changed, 5507 insertions(+), 3 deletions(-) create mode 100644 components/calendar/locale/mr_IN.ts create mode 100644 components/date-picker/locale/mr_IN.ts create mode 100644 components/locale/mr_IN.ts create mode 100644 components/time-picker/locale/mr_IN.ts 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
+
+
+ |
+
+
+
+
+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