-
Bug
-
Resolution: Unresolved
-
Normal
-
1.10.0
-
False
-
-
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.hour, activeUsers.averageSuffix).
- Visited component shows up in top catalog entities — TypeError: Cannot read properties of undefined (reading 'selectKind') (missing filter.all, filter.selectKind).
- New data shows in searches — toContainText fails: expected substring contains "undefinedundefined" (missing searches.hour, searches.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):
- is related to
-
RHIDP-12537 [e2e] Update e2e tests to support German and spanish locale in rhdh-plugins repo
-
- Review
-