Skip to content

feat(i18n): enhance Hindi (hi) locale and align with latest schema#8897

Open
Rugvedrc wants to merge 2 commits intomakeplane:previewfrom
Rugvedrc:preview
Open

feat(i18n): enhance Hindi (hi) locale and align with latest schema#8897
Rugvedrc wants to merge 2 commits intomakeplane:previewfrom
Rugvedrc:preview

Conversation

@Rugvedrc
Copy link
Copy Markdown

@Rugvedrc Rugvedrc commented Apr 15, 2026

Description

This PR enhances and refines the Hindi (hi) locale implementation by aligning it with the latest English i18n schema and improving overall consistency.

Key updates include:

  • Replaced outdated notification keys with schema-aligned keys (e.g., property_changes, state_change, issue_completed, comments, mentions)
  • Removed deprecated keys to prevent inconsistencies
  • Fixed incorrect wording in accessibility (मॉडलमोडल)
  • Resolved duplicate key issue in work_items
  • Ensured overall structure matches the English reference schema

Type of Change

  • Improvement (change that improves existing functionality and consistency)
  • Code refactoring

Screenshots and Media (if applicable)

N/A (Localization changes)


Test Scenarios

  • Verified no deprecated keys remain in Hindi translations
  • Confirmed presence of all updated schema keys
  • Checked UI labels and accessibility strings for correctness
  • Ensured no duplicate keys or TypeScript errors
  • Validated consistency with English i18n structure

References

Related to previous Hindi locale additions and schema alignment improvements.

Summary by CodeRabbit

  • New Features
    • Added Hindi (हिन्दी) language support: new language option in the UI, comprehensive Hindi translations for navigation, accessibility labels, empty states, editor strings placeholder, and standard interface text; Hindi locale is integrated and will be loaded on demand.

Copilot AI review requested due to automatic review settings April 15, 2026 08:17
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: edc9ad55-562b-4222-9af3-13b0745899d2

📥 Commits

Reviewing files that changed from the base of the PR and between 42fce55 and fae266f.

📒 Files selected for processing (1)
  • packages/i18n/src/locales/hi/translations.ts
✅ Files skipped from review due to trivial changes (1)
  • packages/i18n/src/locales/hi/translations.ts

📝 Walkthrough

Walkthrough

Added Hindi ("hi") language support to the i18n package: new Hindi locale modules (translations, accessibility, empty-state, editor), registry entry for hi, and language constants/types updated to include "hi" and "हिन्दी".

Changes

Cohort / File(s) Summary
Language config & types
packages/i18n/src/constants/language.ts, packages/i18n/src/types/language.ts
Added Hindi option { label: "हिन्दी", value: "hi" } to SUPPORTED_LANGUAGES and added "hi" to the TLanguage union.
Hindi locale modules
packages/i18n/src/locales/hi/translations.ts, packages/i18n/src/locales/hi/accessibility.ts, packages/i18n/src/locales/hi/empty-state.ts, packages/i18n/src/locales/hi/editor.ts
Added four new locale files exporting as const translation objects (translations ~820 lines, accessibility ~40 lines, empty-state ~198 lines, editor placeholder).
Locales registry
packages/i18n/src/locales/index.ts
Registered hi with lazy dynamic imports for translations, accessibility, editor, and empty-state.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Poem

🐰 नमस्ते! I hop with joy and cheer,
New Hindi words have arrived here,
Labels, prompts, and empty-state light,
Translating dawn into delight. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The PR title accurately summarizes the main change—enhancing Hindi locale and aligning it with the latest schema, which is the primary focus of all modifications.
Description check ✅ Passed The PR description is comprehensive, covering all key sections: detailed description of changes, type of change properly marked, test scenarios documented, and references included. All required sections are populated.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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
Copy Markdown
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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/i18n/src/locales/hi/translations.ts`:
- Around line 272-283: The Hindi translations file is missing top-level keys
present in English (old_password, general_settings, sign_out, signing_out) after
the notification section around the notify_me_when/work_items area; add those
keys to packages/i18n/src/locales/hi/translations.ts with appropriate Hindi
translations (or temporary placeholders) using the same key names (old_password,
general_settings, sign_out, signing_out) so the schema matches the English file
and avoids lookup errors—insert them alongside the existing notify_me_when and
before work_items to mirror the original structure.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ce34cca8-a650-4dbe-b996-316a32db99d4

📥 Commits

Reviewing files that changed from the base of the PR and between 13db2f8 and 42fce55.

📒 Files selected for processing (7)
  • packages/i18n/src/constants/language.ts
  • packages/i18n/src/locales/hi/accessibility.ts
  • packages/i18n/src/locales/hi/editor.ts
  • packages/i18n/src/locales/hi/empty-state.ts
  • packages/i18n/src/locales/hi/translations.ts
  • packages/i18n/src/locales/index.ts
  • packages/i18n/src/types/language.ts

Comment thread packages/i18n/src/locales/hi/translations.ts
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Hindi (hi) as a supported i18n locale and provides Hindi translations/accessibility/empty-state strings, wired into the i18n loader and language selector.

Changes:

  • Added hi to the supported language type union and language options list.
  • Registered hi locale modules in the dynamic locales import map.
  • Introduced initial Hindi locale files (translations, accessibility, empty-state, editor).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/i18n/src/types/language.ts Extends TLanguage union to include hi.
packages/i18n/src/constants/language.ts Adds Hindi to SUPPORTED_LANGUAGES for UI selection/storage validation.
packages/i18n/src/locales/index.ts Registers hi locale module imports for runtime loading/merging.
packages/i18n/src/locales/hi/translations.ts Provides Hindi translation strings (schema-aligned keys for notifications, etc.).
packages/i18n/src/locales/hi/accessibility.ts Adds Hindi ARIA labels (including “मोडल” wording).
packages/i18n/src/locales/hi/empty-state.ts Adds Hindi empty-state copy for multiple product areas.
packages/i18n/src/locales/hi/editor.ts Adds placeholder editor locale module (consistent with other locales).

@Rugvedrc
Copy link
Copy Markdown
Author

All requested schema-alignment fixes have been applied.

Additional updates included:

  • Added translations for old password and sign out
  • Verified deprecated notification keys are removed
  • Confirmed Hindi locale structure is aligned with the current schema

Ready for maintainer review. Thanks!

@Rugvedrc
Copy link
Copy Markdown
Author

Hi maintainers 👋

This PR aligns the Hindi locale with the latest schema and resolves previous inconsistencies.

All checks are passing and changes are scoped to i18n only.

Would appreciate a review when you get a chance. Thanks!

@Rugvedrc
Copy link
Copy Markdown
Author

Hi maintainers 👋

This PR adds full Hindi (hi) locale support and aligns it with the latest i18n schema.

The feature is tracked in #8900 and implementation is complete with:

  • Full translations (UI, accessibility, empty states)
  • Schema alignment with English locale
  • No TypeScript errors or duplicate keys

Would appreciate a review or feedback when you get time. Happy to make any changes if needed.

Thanks!

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