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

Bug(Aggregated scorecard): Missing i18n translations for threshold entity count

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.9.0
    • 1.9.0
    • Scorecard
    • False
    • Hide

      None

      Show
      None
    • False

      *Description of problem:*

      Missing i18n translations for threshold entity count settings in Japanese (ja) and Italian (it) locales. The keys `thresholds.entities_one`, `thresholds.entities_other`, and `thresholds.noEntities` exist in the English reference file (ref.ts) but are missing from ja.ts and it.ts.

      *Prerequisites (if any, like setup, operators/versions):*
      rhdh-plugins scorecard workspace

      *Steps to Reproduce:*
      1. Set browser locale to Japanese (ja) or Italian (it)
      2. Navigate to the Home page where aggregated scorecards are displayed
      3. Observe the entity count text on scorecard cards (e.g., "0 entities", "2 entities")

      *Actual results:*
      Entity count labels in Japanese and Italian are shown in English texts ("0 entities" instead of localized text).

      *Expected results:*

      • UI should display Japanese/Italian translations for entity count labels similar to other locales (French, German, Spanish)
      • All translation keys in ref.ts should have corresponding entries in ja.ts and it.ts
      • Specifically missing keys:
          - `thresholds.entities_one` (singular form, e.g., "1 entity")
          - `thresholds.entities_other` (plural form, e.g., "2 entities")
          - `thresholds.noEntities` (e.g., "No entities in category state")

      *Reproducibility (Always/Intermittent/Only Once):*
      Always

      *Build Details:*
      Dev mode

      *Additional info (Such as Logs, Screenshots, etc):*
      Reference file (ref.ts) contains:
      ```typescript
      thresholds: {
        entities_one: 'count entity',
        entities_other: 'count entities',
        noEntities: 'No entities in category state',
      }
      ```

              yicai@redhat.com Yi Cai
              rh-ee-hushaik Husne Shabbir Shaik
              RHDH Frontend Plugins & UI
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: