Skip to content

Comments

feat (i18n): new translation keys across all supported languages#1178

Closed
abhiifour wants to merge 2 commits intoMail-0:stagingfrom
abhiifour:chore/i18n-add-18-locales
Closed

feat (i18n): new translation keys across all supported languages#1178
abhiifour wants to merge 2 commits intoMail-0:stagingfrom
abhiifour:chore/i18n-add-18-locales

Conversation

@abhiifour
Copy link
Contributor

@abhiifour abhiifour commented Jun 1, 2025

Description

Added 5 new keys and provided translations for all supported locales:

  • clearAllFilters
  • markAsImportant
  • bulkArchive
  • bulkDelete
  • bulkStar

Type of Change

Please delete options that are not relevant.

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature with breaking changes)
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔒 Security enhancement
  • ⚡ Performance improvement

Areas Affected

Please check all that apply:

  • Email Integration (Gmail, IMAP, etc.)
  • User Interface/Experience
  • Authentication/Authorization
  • Data Storage/Management
  • API Endpoints
  • Documentation
  • Testing Infrastructure
  • Development Workflow
  • Deployment/Infrastructure

Testing Done

Describe the tests you've done:

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • Cross-browser testing (if UI changes)
  • Mobile responsiveness verified (if UI changes)

Security Considerations

For changes involving data or authentication:

  • No sensitive data is exposed
  • Authentication checks are in place
  • Input validation is implemented
  • Rate limiting is considered (if applicable)

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in complex areas
  • I have updated the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix/feature works
  • All tests pass locally
  • Any dependent changes are merged and published

Screenshots/Recordings

Screenshot from 2025-06-01 13-08-41


By submitting this pull request, I confirm that my contribution is made under the terms of the project's license.

Summary by CodeRabbit

  • New Features
    • Added new shortcut action labels for bulk operations (clear all filters, mark as important, archive, delete, star) across multiple languages in the mail app interface, improving localization and accessibility for global users.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 1, 2025

"""

Walkthrough

This update adds new localized action labels for bulk operations and filter clearing to the mail application's shortcut/action sections across multiple language JSON files. No existing keys are modified or removed; only new translation entries are appended to each locale file.

Changes

Files Change Summary
apps/mail/locales/ar.json, ca.json, cs.json, de.json, en.json,
es.json, fa.json, fr.json, hi.json, hu.json, ja.json, ko.json,
lv.json, nl.json, pl.json, pt.json, ru.json, tr.json, vi.json,
zh_CN.json, zh_TW.json Added new localized shortcut/action labels for: clearAllFilters, markAsImportant, bulkArchive, bulkDelete, bulkStar.

Possibly related PRs

  • fix for i18n #1164: Modifies the command palette component to use translation functions for command titles, related through internationalization of command palette UI elements.
  • feat: add farsi support #636: Adds initial Farsi language support and updates i18n configuration, related through addition and enhancement of Farsi localization resources.

Suggested reviewers

  • needleXO
  • MrgSub

Poem

A rainbow of words, in every tongue,
New shortcuts for actions, now brightly sung.
From filters cleared to stars in bulk,
Across the globe, no meaning sulks.
🐇 With every locale, the world feels small—
Now mail commands make sense to all!
"""


📜 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 ca152ef and da1285c.

📒 Files selected for processing (1)
  • apps/mail/locales/en.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/mail/locales/en.json

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 13bae8f and ca152ef.

📒 Files selected for processing (21)
  • apps/mail/locales/ar.json (1 hunks)
  • apps/mail/locales/ca.json (1 hunks)
  • apps/mail/locales/cs.json (1 hunks)
  • apps/mail/locales/de.json (1 hunks)
  • apps/mail/locales/en.json (1 hunks)
  • apps/mail/locales/es.json (1 hunks)
  • apps/mail/locales/fa.json (1 hunks)
  • apps/mail/locales/fr.json (1 hunks)
  • apps/mail/locales/hi.json (1 hunks)
  • apps/mail/locales/hu.json (1 hunks)
  • apps/mail/locales/ja.json (1 hunks)
  • apps/mail/locales/ko.json (1 hunks)
  • apps/mail/locales/lv.json (1 hunks)
  • apps/mail/locales/nl.json (1 hunks)
  • apps/mail/locales/pl.json (1 hunks)
  • apps/mail/locales/pt.json (1 hunks)
  • apps/mail/locales/ru.json (1 hunks)
  • apps/mail/locales/tr.json (1 hunks)
  • apps/mail/locales/vi.json (1 hunks)
  • apps/mail/locales/zh_CN.json (1 hunks)
  • apps/mail/locales/zh_TW.json (1 hunks)
🔇 Additional comments (30)
apps/mail/locales/hi.json (2)

469-469: Verify unexpected addition of selectUnderCursor.
The PR summary and objectives mention five new keys, but this locale file also introduces a selectUnderCursor entry. Please confirm whether this key was intended to be part of this feature.

Likely an incorrect or invalid review comment.


470-474: Approve translations for bulk action keys.
The entries for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are correctly added and the Hindi translations align with the UI context.

apps/mail/locales/pt.json (2)

469-469: Verify unexpected addition of selectUnderCursor.
This file also adds selectUnderCursor, which isn’t described in the PR objectives. Ensure this key is intended.

Likely an incorrect or invalid review comment.


470-474: Approve translations for bulk action keys.
The Portuguese translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are accurate and well-placed.

apps/mail/locales/ko.json (2)

469-469: Verify unexpected addition of selectUnderCursor.
The key selectUnderCursor appears here but isn’t mentioned in the PR summary. Please confirm its inclusion.

Likely an incorrect or invalid review comment.


470-474: Approve translations for bulk action keys.
Korean translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are correct and consistent.

apps/mail/locales/ja.json (2)

469-469: Verify unexpected addition of selectUnderCursor.
This file adds selectUnderCursor along with the five intended keys. The PR objectives don’t reference it—please verify.

Likely an incorrect or invalid review comment.


470-474: Approve translations for bulk action keys.
Japanese translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are properly added.

apps/mail/locales/zh_TW.json (2)

462-462: Verify unexpected addition of selectUnderCursor.
The selectUnderCursor key was introduced but not mentioned in the PR summary—please confirm its intention.

Likely an incorrect or invalid review comment.


463-467: Approve translations for bulk action keys.
Traditional Chinese translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are correct and consistent.

apps/mail/locales/nl.json (2)

470-474: Approve Dutch translations for new shortcut actions
The entries for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are correctly translated and follow the existing key conventions.


469-469: Clarify selectUnderCursor addition
The key selectUnderCursor appears alongside the five new action labels but wasn't mentioned in the PR objectives. Please confirm if it belongs in this feature or should be part of a separate change.

Likely an incorrect or invalid review comment.

apps/mail/locales/ar.json (2)

469-474: Approve Arabic translations for new shortcut actions
The Arabic translations for clearAllFilters ("مسح جميع الفلاتر"), markAsImportant ("وضع علامة كمهم"), bulkArchive ("أرشفة جماعية"), bulkDelete ("حذف جماعي"), and bulkStar ("تمييز جماعي بنجمة") are accurate and align with the existing localization style.


469-469: Clarify selectUnderCursor addition
The key selectUnderCursor has been added but is not mentioned in the PR objectives. Please verify if its inclusion is intentional.

Likely an incorrect or invalid review comment.

apps/mail/locales/vi.json (2)

463-467: Approve Vietnamese translations for new shortcut actions
The Vietnamese translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are correct and consistent with the locale’s phrasing.


462-462: Clarify selectUnderCursor addition
The key selectUnderCursor is introduced here but wasn’t listed in the PR summary. Confirm if it should be included in this release.

Likely an incorrect or invalid review comment.

apps/mail/locales/es.json (2)

470-474: Approve Spanish translations for new shortcut actions
The Spanish translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are accurate and maintain consistency with existing keys.


469-469: Clarify selectUnderCursor addition
The selectUnderCursor key appears alongside the new bulk action labels but is not documented in the PR scope. Please verify its intended inclusion.

Likely an incorrect or invalid review comment.

apps/mail/locales/pl.json (2)

470-474: Approve Polish translations for new shortcut actions
The Polish translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar (Wyczyść wszystkie filtry, Oznacz jako ważne, Zarchiwizuj zbiorczo, Usuń zbiorczo, Oznacz gwiazdką zbiorczo) are correct and align with the locale standards.


469-469: Clarify selectUnderCursor addition
The key selectUnderCursor was added but not referenced in the PR objectives. Confirm whether it should be part of this feature.

Likely an incorrect or invalid review comment.

apps/mail/locales/ca.json (1)

469-474: Approve Catalan translations additions
The new shortcut keys (clearAllFilters, markAsImportant, bulkArchive, bulkDelete, bulkStar) are correctly named and placed within the shortcuts.actions section. The Catalan translations follow the imperative style used elsewhere, and there are no trailing-comma or structural issues.

apps/mail/locales/tr.json (1)

469-474: Approve Turkish translations additions
The five new keys are inserted in the proper location under shortcuts.actions, and the Turkish translations are consistent with the imperative tone of existing entries. JSON syntax and formatting are correct.

apps/mail/locales/fr.json (1)

469-474: Approve French translations additions
Translations for clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are correctly localized and adhere to the existing formatting and structure. No issues detected.

apps/mail/locales/cs.json (1)

469-474: Approve Czech translations additions
The new keys and their Czech translations are properly added under shortcuts.actions, matching the style and punctuation of neighboring entries. JSON remains valid.

apps/mail/locales/ru.json (1)

469-474: Approve Russian translations additions
New shortcut entries are correctly appended in the right JSON section, and the Russian translations are idiomatic and consistent with existing labels. Syntax is valid.

apps/mail/locales/fa.json (1)

462-467: Approve new translation keys.
The five new shortcut action labels (clearAllFilters, markAsImportant, bulkArchive, bulkDelete, bulkStar) have been correctly added under common.shortcuts.actions with accurate Farsi translations.

apps/mail/locales/zh_CN.json (1)

462-467: Approve new translation keys.
The new shortcuts (clearAllFilters, markAsImportant, bulkArchive, bulkDelete, bulkStar) have been appended under common.shortcuts.actions with correct Simplified Chinese translations.

apps/mail/locales/hu.json (1)

462-467: Approve new translation keys.
Added the five new bulk-action and filter-clearing labels under common.shortcuts.actions with proper Hungarian translations.

apps/mail/locales/lv.json (1)

469-474: Approve new translation keys.
The keys clearAllFilters, markAsImportant, bulkArchive, bulkDelete, and bulkStar are properly inserted under common.shortcuts.actions with correct Latvian translations.

apps/mail/locales/de.json (1)

469-469: Confirm unintended addition of selectUnderCursor.
The selectUnderCursor key is annotated as a new entry but isn’t mentioned in the PR description or AI-generated summary. Please confirm whether this addition was intended in this PR.

Likely an incorrect or invalid review comment.

@MrgSub
Copy link
Collaborator

MrgSub commented Jun 7, 2025

You only need to add them to en.json because lingo.dev can handle the rest :)

@MrgSub MrgSub closed this Jun 10, 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