Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2791

Adoption Insights: Add missing German (de) and Spanish (es) translation keys

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

      Description of problem:

      The Adoption Insights plugin’s German (de) and Spanish (es) locale files are missing several translation keys that exist in the reference (ref) and in other locales (fr, it, ja). The app falls back to English for these keys, and e2e tests fail in de/es because the test’s getTranslations(locale) only reads the locale file (no ref fallback), so those keys are undefined.

      Impact

      • UI: Mixed language in de/es (e.g. “hour for this period.” or “Select kind” in English inside Spanish/German text).
      • E2E (failing in de and es):
        • Active users panel shows 1 visitor — expected text contains undefined (missing activeUsers.houractiveUsers.averageSuffix).
        • Visited component shows up in top catalog entities — TypeError: Cannot read properties of undefined (reading 'selectKind') (missing filter.allfilter.selectKind).
        • New data shows in searches — toContainText fails: expected substring contains "undefinedundefined" (missing searches.hoursearches.averageSuffix); UI shows “hour for this period.” in English.

      Missing keys in both de and es

      Key Ref value (English)
      filter.all All
      filter.selectKind Select kind
      activeUsers.averageSuffix for this period.
      activeUsers.hour hour
      searches.averageSuffix for this period.
      searches.hour hour

      Files to update
      workspaces/adoption-insights/plugins/adoption-insights/src/translations/de.ts
      workspaces/adoption-insights/plugins/adoption-insights/src/translations/es.ts

      Reference
      Use plugins/adoption-insights/src/translations/ref.ts and fr.ts / it.ts / ja.ts for key names and values when adding the missing entries. Do not add e2e or app code workarounds for missing locale text; fix by adding the missing keys to de and es.

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

       # <steps>

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

              Unassigned Unassigned
              rh-ee-hushaik Husne Shabbir Shaik
              RHDH Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: