Skip to content

Conversation

divyeshagrawal
Copy link
Contributor

@divyeshagrawal divyeshagrawal commented Sep 26, 2025

Summary by CodeRabbit

  • 新功能
    • 新增马拉地语(mr_IN)本地化支持,覆盖日期与时间相关的所有界面文本(例如“今天”“现在”“确定”“清除”“周/月/年/十年/世纪选择”“上一/下一月/年/十年/世纪”等)。
    • 用户现在可在语言设置中选择马拉地语,获得完整的界面翻译与本地化体验。

Copy link

vercel bot commented Sep 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
picker Ready Ready Preview Comment Sep 27, 2025 6:43am

Copy link

coderabbitai bot commented Sep 26, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

新增 Marathi(mr_IN)本地化模块:在 src/locale/mr_IN.ts 中基于 commonLocale 构建并覆盖 locale: 'mr_IN',提供马拉地语的日期/时间控件文本并默认导出该 locale 对象。

Changes

Cohort / File(s) Summary of Changes
本地化新增:Marathi(mr_IN)
src/locale/mr_IN.ts
新增 mr_IN 语言包:导入 commonLocaleLocale 类型,扩展并覆盖 locale='mr_IN',提供多项日期/时间控件文案(today/now/ok/clear、单位与上一/下一时段等),并默认导出 locale

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

我在代码巷里跳跃,轻敲键盘唱新章,
马拉地语悄然来,把日历词都换上装。
今天与此刻细数光,确定与清除并肩忙,
小兔一跃把版本推,世界多了一声“Namaskar” 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed 该 PR 标题“feat: Add Marathi Language Support”简洁明确地概括了本次提交主要添加 Marathi(mr_IN)语言支持的变更,符合最佳实践,能够让团队成员快速了解核心改动。
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cb7362d and 295092a.

📒 Files selected for processing (1)
  • src/locale/mr_IN.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/locale/mr_IN.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Summary of Changes

Hello @divyeshagrawal, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the application's internationalization capabilities by integrating Marathi language support. It provides a complete set of localized strings for date and time selection components, ensuring a more inclusive and user-friendly experience for Marathi-speaking users.

Highlights

  • New Language Support: This pull request introduces support for the Marathi language (mr_IN) within the application's localization system.
  • New Locale File Added: A new locale file, src/locale/mr_IN.ts, has been added. This file contains all necessary Marathi translations for common date and time picker components.
  • Comprehensive Translations: The added Marathi locale includes translations for various UI elements such as 'today', 'now', 'backToToday', 'ok', 'clear', 'week', 'month', 'year', and navigation controls for date and time selection.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces Marathi language support by adding a new locale file mr_IN.ts. The provided translations are a great start. My review includes suggestions to make the localization more complete by adding properties for short day/month names and region-specific date formats. These changes will improve the user experience and ensure consistency across the component.

Comment on lines 4 to 30
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: 'पुढचे शतक',
};
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 30
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: 'पुढचे शतक',
};
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.

Copy link

codecov bot commented Sep 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.80%. Comparing base (741e709) to head (9a2bae3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #943   +/-   ##
=======================================
  Coverage   98.80%   98.80%           
=======================================
  Files          65       65           
  Lines        2682     2682           
  Branches      721      741   +20     
=======================================
  Hits         2650     2650           
  Misses         29       29           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yoyo837 yoyo837 merged commit 888bdec into react-component:master Sep 27, 2025
9 checks passed
@yoyo837
Copy link
Member

yoyo837 commented Sep 28, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants