Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/locale/mr_IN.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { commonLocale } from './common';
import type { Locale } from '../interface';

const locale: Locale = {
...commonLocale,
locale: 'mr_IN',
today: 'आज',
now: 'आता',
backToToday: 'आजवर परत जा',
ok: 'ठीक आहे',
clear: 'साफ करा',
week: 'आठवडा',
month: 'महिना',
year: 'वर्ष',
timeSelect: 'वेळ निवडा',
dateSelect: 'दिनांक निवडा',
weekSelect: 'आठवडा निवडा',
monthSelect: 'महिना निवडा',
yearSelect: 'वर्ष निवडा',
decadeSelect: 'दशक निवडा',

previousMonth: 'मागील महिना (पेजअप)',
nextMonth: 'पुढचा महिना (पेजडाउन)',
previousYear: 'गेल्या वर्षी (Ctrl + left)',
nextYear: 'पुढचे वर्ष (Ctrl + right)',
previousDecade: 'मागील दशक',
nextDecade: 'पुढचे दशक',
previousCentury: 'मागील शतक',
nextCentury: 'पुढचे शतक',
};
Comment on lines 4 to 48
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The locale object is missing shortWeekDays and shortMonths properties. While these are optional in the Locale type, their absence can lead to an incomplete translation. For instance, the calendar header for days of the week and the month selection dropdown might not be translated. To ensure a complete localization for Marathi, please add these properties.

Example:

  shortWeekDays: ['रवि', 'सोम', 'मंगळ', 'बुध', 'गुरु', 'शुक्र', 'शनि'],
  shortMonths: ['जाने', 'फेब्रु', 'मार्च', 'एप्रि', 'मे', 'जून', 'जुलै', 'ऑग', 'सप्टें', 'ऑक्टो', 'नोव्हें', 'डिसें'],

Please verify and use the appropriate short forms for Marathi.

Comment on lines 4 to 48
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The locale object does not specify any field...Format properties, such as fieldDateFormat. The component will fall back to default formats like YYYY-MM-DD. In India, the DD-MM-YYYY format is more common. To align with local conventions and improve user experience, I recommend adding format specifiers.

Example:

  fieldDateFormat: 'DD-MM-YYYY',
  fieldDateTimeFormat: 'DD-MM-YYYY HH:mm:ss',
  fieldMonthFormat: 'MM-YYYY',

You can add other format fields as needed.


export default locale;