Skip to content

Conversation

@revaarathore11
Copy link
Contributor

fixes #1294
Summary

This PR completes full internationalization (i18n) for the HeuristicTestView component across all supported languages and fixes a critical runtime crash in SettingsView.vue.

Key Changes

  1. Internationalization for HeuristicTestView
    • Full Locale Coverage
    Added 20+ new translation keys to all 10 supported locale files:
    en, es, hi, de, fr, pt_br, ar, ja, ru, zh.
    • Standardized Locale Structure
    Unified the HeuristicsTestView section across all locale files, organizing keys into:
    • messages
    • errors
    • actions
    • headers
    This ensures structural consistency and easier long-term maintenance.
    • Component Updates
    Refactored HeuristicTestView.vue to replace all hardcoded strings with $t() calls, covering:
    • Section headers
    • Button labels
    • Status messages
    • Alert and empty-state text
    • Improved Fallback Handling
    Added safer fallback logic for heuristics and questions missing titles, ensuring the UI remains localized even when data is incomplete.

  2. Bug Fixes in SettingsView.vue
    • Runtime Crash Fix
    Resolved a critical runtime error (Cannot read properties of undefined (reading 'siteURL')) caused by an invalid reference to a non-existent websiteDetails object.
    • Null-Safety Improvements
    Updated the study data watcher to safely handle transient undefined states during page load, preventing crashes in SettingsView.vue and shared components such as the Final Report view.

Confirmation & Testing
• Localization Validation
Verified that all 10 locale files contain the required keys and share the same structure.
• Runtime Stability
Confirmed that SettingsView.vue and dependent views no longer crash due to undefined data.
• Build Status
Application builds and runs successfully with no new linting or runtime errors.

SCREENSHOTS
BEFORE
image

AFTER
image

@github-actions
Copy link

⚠️ PR Description Issues Detected

Please update the PR description to address these issues.

@sonarqubecloud
Copy link

@revaarathore11
Copy link
Contributor Author

@marcgc21 please review

@marcgc21 marcgc21 merged commit 322d0db into ruxailab:develop Jan 29, 2026
8 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