Skip to content

i18n: wire the remaining dashboard pages to next-intl (Insights, Topics, Agent) #384

Closed

Description

@gkhngyk

Summary

Most of the dashboard already localizes its UI via next-intl (useTranslations(...) + web/messages/en.json namespaces — e.g. audit, reports). A few pages still render hardcoded English and never call useTranslations. This is a consistency / infrastructure tracking issue to bring them in line with the rest of the dashboard.

Scope note: web/messages/ currently ships only en.json (no second locale yet), so this is a consistency + infra cleanup, not an immediately visible translation win. It makes every dashboard page follow the same t('…') pattern so a future locale drop-in "just works". Each page below can be its own small PR.

Pages to wire

1. Insights — web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx

  • No useTranslations import; all text hardcoded.
  • An insights namespace already exists in web/messages/en.json (≈14 keys: title, description, runPrompts, promptResults, platform, mentions, citations, sentiment, score, positive, neutral, negative) but is unused.
  • Wire the page to the existing insights namespace.
  • Note: the namespace only covers ~14 strings; the page has far more text without keys. Wiring the existing keys is in scope; adding keys for the rest is a follow-up (out of scope here).

2. Topics — web/src/app/[locale]/(dashboard)/dashboard/topics/page.tsx

  • No useTranslations; header (~265–268), KPI labels/subs (~305–335), and empty state (~361–366) are hardcoded.
  • No topics page namespace exists yet ("topics" in en.json is the nav label). Must add a page namespace and wire the page — follow the existing audit / reports pattern.
  • Add a topics page namespace to en.json + wire the page.

3. Agent — web/src/app/[locale]/(dashboard)/dashboard/agent/page.tsx

  • No useTranslations; hardcoded strings include confirm('Delete this conversation?') (~248), "New chat" (~292), "No conversations yet." (~296), the input placeholder (~373), "Add your Anthropic API key" / "Go to Settings" (~674–685), plus toast.success('Copied') and aria-labels.
  • No agent page namespace ("agent" in en.json is the nav label). Must add an agent namespace and wire the page.
  • Add an agent page namespace to en.json + wire the page.

Acceptance criteria (per page)

  • All user-visible strings go through useTranslations(...) with matching en.json keys.
  • Behavior is unchanged; English copy renders identically to today.
  • Follows the existing dashboard pattern (audit / reports).

Notes

Activity

  1. added
    enhancement
    good first issue
    on Jul 9, 2026
  2. Sam-syntax35 commented on Jul 9, 2026

    @Sam-syntax35
    Contributor

    hey @gkhngyk !plz assign this to me

  3. Sam-syntax35 commented on Jul 9, 2026

    @Sam-syntax35
    Contributor

    Hi @gkhngyk, could you please assign these issues to me? I've already started working on them, and assigning them will help avoid duplicate PRs. Thanks!

  4. gkhngyk commented on Jul 15, 2026

    @gkhngyk
    ContributorAuthor

    Split into one issue per page so each is a single-PR good first issue: #439 (Insights), #440 (Topics), #441 (Agent). Closing this tracker in their favor.

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