Skip to content

Bug: Untranslated backend enums / locally-formatted strings render raw English (product status, execution status, governance Trash relative time) #2052

Closed

Description

@yannickmonney

Area / route
Three list/detail surfaces render raw English instead of the active locale, though the keys (or a shared i18n-aware helper) already exist. Each surface preserved below.

Sites

  • [71] Product status label not localized in View dialog and products table Status column (raw enum shown)
    • Evidence: product-view-dialog.tsx:127-134 (Badge children = product.status, className 'capitalize'); products-table.tsx:96-100 (Badge children = row.original.status); contrast product-create-dialog.tsx:176 (tCommon('status.'+status)) and product-edit-dialog.tsx:83-90 (tGlobal('statuses.'+s))
  • [93] Execution status badge renders untranslated English (running/completed/failed/pending) while the status filter dropdown is localized
    • Evidence: app/features/automations/executions/executions-table.tsx:185-189 (renders : statusVal untranslated); same file:396-400 (filter options use tCommon('status.completed') etc.); messages/de.json common.status.completed="Abgeschlossen", messages/fr.json common.status.completed="Terminé"
  • [110] Governance Trash "Trashed" column renders relative time in hardcoded English (not localized)
    • Evidence: trash-page.tsx:444-453 local formatRelative() returns literal 'just now' / ${days}d ago / ${hours}h ago / ${minutes}m ago; used at trash-page.tsx:336-338. No governance.trash.relative* i18n keys exist (verified absent in messages/en.json). A shared i18n-aware alternative exists: app/components/ui/data-display/table-date-cell.tsx (preset 'relative' via useFormatDate/useLocale).

Notes
[71]/[93]: map the stored value through the existing tCommon('status.<key>') key (map snake-case backend statuses to camelCase: waitingForInput, pausedDebug), guard unknown values, drop capitalize. [110]: replace the local formatRelative cell with <TableDateCell preset="relative" /> and delete the dead helper. Distinct from #1978 (Unknown Customer string) and #1959 (model-catalog last-synced). The todo_list hardcoded-English chrome [28] is filed separately (missing keys, not a raw-enum render).


Filed by an automated manual-review pass (live browser QA + a 25-agent code-grounded audit, each finding adversarially verified). Deduped against open issues (incl. #1972–#1999, settings/forms epic #1941–#1966, audit cluster #1842–#1846) and recently-closed issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automatedbugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions