-
-
Notifications
You must be signed in to change notification settings - Fork 331
feat: Add Marathi language support #658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Marathi language support #658
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Note Other AI code review bot(s) detectedCodeRabbit 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新增 Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
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. Comment |
Summary of ChangesHello @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 significantly enhances the application's internationalization by integrating Marathi language support. It specifically targets the pagination component, ensuring that all related UI texts are available in Marathi, thereby improving the user experience for Marathi-speaking users. The change involves adding a new locale file with comprehensive translations for pagination options and navigation controls. Highlights
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this 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 the mr_IN.ts
locale file. The implementation is clean and follows the existing pattern for localization. I've identified a minor UI issue related to string formatting for a tooltip and have provided a suggestion for a fix within the new locale file.
src/locale/mr_IN.ts
Outdated
const locale: PaginationLocale = { | ||
// Options | ||
items_per_page: '/ पृष्ठ', | ||
jump_to: 'यावर जा', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The jump_to
string is used in Pagination.tsx
to create a title
attribute. It's concatenated directly with page numbers, like ${locale.jump_to}${current}/${allPages}
. This will result in a title attribute like यावर जा5/10
without a space between the text and the numbers.
To fix this and ensure proper spacing in the tooltip, please add a trailing space to the string. While the ideal fix would be in Pagination.tsx
, adjusting the translation here is a good workaround.
jump_to: 'यावर जा', | |
jump_to: 'यावर जा ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #658 +/- ##
=======================================
Coverage 99.03% 99.03%
=======================================
Files 3 3
Lines 310 310
Branches 139 139
=======================================
Hits 307 307
Misses 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Please check the AI review. |
If you want to use this in antd@5, you need to merge the PR into the 5.x branch, otherwise you need to wait until antd@6 is released. |
I can wait till version 6 |
OK. |
Sorry, this one https://github.com/react-component/pagination/releases/tag/%40rc-component%2Fpagination%401.1.3 |
@yoyo837 I noticed that the new |
See #658 (comment) The |
https://github.com/react-component/pagination/tree/5.x for antd@5 master/feature |
Hey @yoyo837, since you have context of the changes that I am performing. Can you please also check this PR? |
Summary by CodeRabbit