Skip to content

AMM-1575 Added ABHA language variables - #186

Merged
helenKaryamsetty merged 51 commits into
PSMRI:developfrom
devikasuresh20:develop
Jul 8, 2025
Merged

AMM-1575 Added ABHA language variables#186
helenKaryamsetty merged 51 commits into
PSMRI:developfrom
devikasuresh20:develop

Conversation

@devikasuresh20

@devikasuresh20 devikasuresh20 commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

📋 Description

JIRA ID: AMM-1575

Added abha language variables


✅ Type of Change

  • 🐞 Bug fix (non-breaking change which resolves an issue)
  • New feature (non-breaking change which adds functionality)
  • 🔥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🛠 Refactor (change that is neither a fix nor a new feature)
  • ⚙️ Config change (configuration file or build script updates)
  • 📚 Documentation (updates to docs or readme)
  • 🧪 Tests (adding new or updating existing tests)
  • 🎨 UI/UX (changes that affect the user interface)
  • 🚀 Performance (improves performance)
  • 🧹 Chore (miscellaneous changes that don't modify src or test files)

ℹ️ Additional Information

Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.

Summary by CodeRabbit

  • New Features
    • Added new Assamese, English, and Hindi translations for ABHA-related terms and messages, enhancing multilingual support for ABHA features.

devikasuresh20 and others added 30 commits September 20, 2024 16:36
@coderabbitai

coderabbitai Bot commented Jul 8, 2025

Copy link
Copy Markdown

Walkthrough

Six new localization keys related to ABHA (Ayushman Bharat Health Account) were added to the Assamese, English, and Hindi language JSON resource files. These additions provide translations for ABHA terms and messages, expanding the available UI labels without modifying or removing any existing entries.

Changes

Files Change Summary
src/assets/Assamese.json Added six new ABHA-related localization keys and values to the "common" dictionary.
src/assets/English.json Added six new ABHA-related localization keys and values to the English language dictionary.
src/assets/Hindi.json Added six new ABHA-related localization keys and values to the Hindi language dictionary.

Poem

In files of words, new keys appear,
ABHA’s name rings loud and clear.
Assamese, Hindi, English too—
Fresh translations just for you!
Rabbits hop with glee and cheer,
For every language now draws near.
🐇✨


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.

@devikasuresh20 devikasuresh20 changed the title AMM-1575 AMM-1575 Added ABHA language variables Jul 8, 2025
@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2025

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
src/assets/English.json (1)

1718-1722: Verify new ABHA keys are added in all language files & consumed in UI

The six keys look fine, but:

  1. Confirm identical keys exist in Assamese.json, Hindi.json, and any other locales to avoid i18n fall-throughs.
  2. Make sure the frontend actually references these keys; otherwise they remain dead strings.
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 457ae95 and 3dcba80.

📒 Files selected for processing (3)
  • src/assets/Assamese.json (1 hunks)
  • src/assets/English.json (1 hunks)
  • src/assets/Hindi.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: lint-and-audit / lint-and-audit
  • GitHub Check: Build
🔇 Additional comments (1)
src/assets/English.json (1)

1716-1717: Rename typo in translation key beneficaryConsentbeneficiaryConsent

  • File: src/assets/English.json, line 1716
  • Diff:
    -"beneficaryConsent":"Beneficiary Consent",
    +"beneficiaryConsent":"Beneficiary Consent",
  • I ran rg and confirmed this is the only occurrence in the repo—no references to the old or new key were found.
  • Please update any code look-ups (e.g. t('beneficaryConsent')) to use beneficiaryConsent and verify that translations render correctly at runtime.

Comment thread src/assets/Hindi.json
Comment on lines 1704 to +1711
"benPreviousVisitDetails": "Beneficiary previous visit details",
"startDataSync": "Start Data Sync"
"startDataSync": "Start Data Sync",
"abha":"ABHA",
"abhaNumber":"ABHA Number",
"abhaDetails":"ABHA Details",
"abhaAddress":"ABHA Address",
"abhaMode":"ABHA Mode",
"abhaDetailsNotAvailable":"ABHA details not available"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

⚠️ Potential issue

JSON invalid – missing comma before newly-added keys and untranslated Hindi strings

  1. benPreviousVisitDetails (l. 1704) now is not the last property but lacks a trailing comma → the whole file is invalid JSON and will not parse.
  2. Newly-added keys keep English text inside the Hindi bundle – breaks UX consistency.
  3. Prefer “आभा” for the acronym (in Devanagari) and proper Hindi translations for the rest.

Apply:

-  "benPreviousVisitDetails": "Beneficiary previous visit details"
+  "benPreviousVisitDetails": "Beneficiary previous visit details",
+  "startDataSync": "डेटा सिंक प्रारंभ करें",
+  "abha": "आभा",
+  "abhaNumber": "आभा संख्या",
+  "abhaDetails": "आभा विवरण",
+  "abhaAddress": "आभा पता",
+  "abhaMode": "आभा मोड",
+  "abhaDetailsNotAvailable": "आभा विवरण उपलब्ध नहीं है"

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In src/assets/Hindi.json around lines 1704 to 1711, add a trailing comma after
the "benPreviousVisitDetails" entry to fix the JSON syntax error. Replace the
English text values of the new keys with their proper Hindi translations, using
"आभा" for the acronym "abha" to maintain UX consistency and correct
localization.

Comment thread src/assets/Assamese.json
Comment on lines +1704 to +1710
"startDataSync": "Start Data Sync",
"abha":"ABHA",
"abhaNumber":"ABHA Number",
"abhaDetails":"ABHA Details",
"abhaAddress":"ABHA Address",
"abhaMode":"ABHA Mode",
"abhaDetailsNotAvailable":"ABHA details not available"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue

Untranslated English strings break localisation consistency

Every other entry in this Assamese bundle is translated, but the newly-added keys keep the English source text. This will show up in the UI as a jarring language switch.

-    "startDataSync": "Start Data Sync",
-    "abha":"ABHA",
-    "abhaNumber":"ABHA Number",
-    "abhaDetails":"ABHA Details",
-    "abhaAddress":"ABHA Address",
-    "abhaMode":"ABHA Mode",
-    "abhaDetailsNotAvailable":"ABHA details not available"
+    "startDataSync": "ডাটা চিঙ্ক আৰম্ভ কৰক",
+    "abha":"এবি‌এইচ‌এ (ABHA)",
+    "abhaNumber":"এবি‌এইচ‌এ নম্বৰ",
+    "abhaDetails":"এবি‌এইচ‌এৰ সবিশেষ",
+    "abhaAddress":"এবি‌এইচ‌এ ঠিকনা",
+    "abhaMode":"এবি‌এইচ‌এ মোড",
+    "abhaDetailsNotAvailable":"এবি‌এইচ‌এৰ সবিশেষ উপলব্ধ নহয়"

Please supply accurate Assamese equivalents (the above are indicative) or get them vetted by your localisation team before merging.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"startDataSync": "Start Data Sync",
"abha":"ABHA",
"abhaNumber":"ABHA Number",
"abhaDetails":"ABHA Details",
"abhaAddress":"ABHA Address",
"abhaMode":"ABHA Mode",
"abhaDetailsNotAvailable":"ABHA details not available"
"startDataSync": "ডাটা চিঙ্ক আৰম্ভ কৰক",
"abha": "এবি‌এইচ‌এ (ABHA)",
"abhaNumber": "এবি‌এইচ‌এ নম্বৰ",
"abhaDetails": "এবি‌এইচ‌এৰ সবিশেষ",
"abhaAddress": "এবি‌এইচ‌এ ঠিকনা",
"abhaMode": "এবি‌এইচ‌এ মোড",
"abhaDetailsNotAvailable": "এবি‌এইচ‌এৰ সবিশেষ উপলব্ধ নহয়"
🤖 Prompt for AI Agents
In src/assets/Assamese.json around lines 1704 to 1710, the newly added keys
contain English text instead of Assamese translations, breaking localization
consistency. Replace the English strings with accurate Assamese translations for
each key or consult the localization team to provide verified Assamese
equivalents before merging.

@helenKaryamsetty
helenKaryamsetty merged commit 3f4cf74 into PSMRI:develop Jul 8, 2025
4 checks passed
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