Skip to content

Conversation

@revaarathore11
Copy link
Contributor

@revaarathore11 revaarathore11 commented Jan 26, 2026

FIXES #1294
🧾 Summary

This PR completes full internationalization (i18n) of the Heuristic Manager page and all its sub-components. In addition to replacing hardcoded strings with translation keys, it resolves multiple runtime and linting issues uncovered during the localization process.

✨ Key Changes

🧩 Heuristic Manager Localization
• Replaced all hardcoded UI strings with i18n keys in:
• ManagerView.vue
• StudyOverview
• RecentActivity
• CooperatorsInfo
• HeuristicsInfo
• StorageInfo
• UsabilityResults
• FinalReportStatus

🌐 Locale File Enhancements
• Added missing Dashboard-related keys (cards, managerView, stats) to all 10 supported locale files.
• Introduced a new common.units namespace to localize storage units (MB / GB).
• Resolved duplicate pages.sessions keys across multiple locale files to fix ESLint warnings and ensure structural consistency.

🔁 Dynamic Localization Logic
• RecentActivity.vue
• Implemented dynamic date-fns locale mapping so relative time strings (e.g. “2 days ago”) match the active language.
• FinalReportStatus.vue
• Updated date formatting to follow locale-specific user conventions.
• StorageInfo.vue
• Localized storage capacity units using shared i18n keys.

🐛 Bug Fixes
• Fixed runtime errors:
• ReferenceError: useRouter is not defined
• ReferenceError: useI18n is not defined
• Added missing imports to affected localized components.

🗂 Files Touched
• ManagerView.vue
• Heuristic Manager sub-components
• src/app/plugins/locales/*.json

✅ Verification
• Language Coverage: Verified correct translations across all 10 supported languages.
• Runtime Stability: Application builds and runs without runtime errors.
• Linting: Fixed JSON structure issues and removed duplicate-key warnings.
• UX Validation: Dates, time-ago labels, and storage units correctly adapt to active locale.

🎯 Result

The Heuristic Manager dashboard is now fully internationalized, locale-aware, and runtime-stable—bringing it in line with the rest of the application’s multilingual experience.

SCREENSHOTS
BEFORE
image
AFTER
image

@github-actions
Copy link

github-actions bot commented Jan 26, 2026

⚠️ PR Description Issues Detected

Please update the PR description to address these issues.

@sonarqubecloud
Copy link

@revaarathore11
Copy link
Contributor Author

@marcgc21 please review

@github-actions github-actions bot added size/M and removed size/L labels Jan 26, 2026
@revaarathore11
Copy link
Contributor Author

@marcgc21 conflict resolved

@marcgc21 marcgc21 merged commit ccb85a2 into ruxailab:develop Jan 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐞 BUG]: Language switch results in partially translated UI across all non-English languages

2 participants