Skip to content

Site Audit: hardcoded English strings and raw status enums bypass i18n #670

Closed

Description

@gkhngyk

Problem

The audit hub and report mix useTranslations('audit') with hardcoded literals. Worst of the bunch: the history list prints the raw status enum for non-completed rows — {h.status === 'completed' ? … : h.status} renders lowercase running / failed directly to the user.

Evidence

Fix

Move the literals into the audit namespace in web/messages/en.json and render them via t(...); add an audit.status.* sub-namespace so statuses render as proper labels ("Running", "Failed"). Splitting into two PRs (hub / report) is fine.

Acceptance criteria

  • No raw status enum values reach the UI.
  • No user-visible hardcoded English strings remain on the audit hub or report.

Activity

  1. added
    enhancement
    good first issue
    on Aug 7, 2026
  2. BharadwajKanneveti commented on Aug 7, 2026

    @BharadwajKanneveti
    Contributor

    @gkhngyk I will work on this issue

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

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions