Skip to content

i18n: wire the Insights page to next-intl #439

Closed

Description

@gkhngyk

Summary

Split from #384 so each page is one small PR.

Most of the dashboard localizes via next-intl (useTranslations(...) + web/messages/en.json), but the Insights page still renders hardcoded English.

Scope note: web/messages/ currently ships only en.json, so this is a consistency + infra cleanup — it makes the page follow the same t('…') pattern as audit / reports so a future locale drop-in just works.

Task

web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx:

  • No useTranslations import today; 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 it.
  • The page has more text than the namespace covers; wiring the existing keys is in scope, adding keys for the rest is a follow-up.

Acceptance criteria

  • Covered strings go through useTranslations('insights'); English renders identically to today.
  • Follows the existing audit / reports pattern; no behavior change.

Activity

  1. added
    enhancement
    good first issue
    on Jul 15, 2026
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