08-Project-Health / 08.08.Fix-Languages-Switch

08.08.Fix Languages Switch

08.08. Fix Languages Switch

1. Problem Analysis

Users experience "semi-English" content when switching languages (e.g., to Finnish or Swedish) on the Report Dashboard.

Root Causes:

2. Implementation Steps

Step 1: Locale Parity Sync

Step 2: Technical Field Translations

Step 3: Enhance translateApiValue Helper

Step 4: Update Global Vocabulary

3. Verification & Testing

3.1 Automated Tests

3.2 Manual Verification

  1. Open the application locally.
  2. Navigate to a generated report.
  3. Cycle through all 9 supported languages.
  4. Verify that sections like "Vehicle Identity", "Security", and "Technical Specifications" are fully translated.

4. Deployment

Once verified locally: 1. Run ENV=prd ./run -a do_gcp_deploy_wui to push changes to production. 2. Clear browser cache or check in Incognito mode to bypass CDN caching of old JSON files.