Skip to content

i18n: wire the Agent page to next-intl - #516

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:fix/agent-page-i18n
Jul 23, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:fix/agent-page-i18n

Conversation

@d180

@d180 d180 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

The Agent page (web/src/app/[locale]/(dashboard)/dashboard/agent/page.tsx) never adopted next-intl — every user-visible string (sidebar "New chat"/"No conversations yet.", the delete confirm and aria-labels, chat placeholder/"Stop"/"Thinking…", tool-call disclosure "Input"/"Output"/"Error" labels, the copy-message toast, the empty state, and the key-missing/plan-gate screens) was hardcoded English, and no agent translation namespace existed in en.json (the existing "agent" key is only the sidebar nav label). This routes every string through useTranslations('agent') with a matching new namespace — pure infra cleanup, no behavior change, following the same pattern already applied to the audit/reports pages.

Related issue

Closes #441

Type of change

  • enhancement / i18n cleanup — matches the issue's enhancement label

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Complete coverage — scanned the page for leftovers and found none, English renders identically, and the nav.agent collision was avoided. Thanks!

@gkhngyk
gkhngyk merged commit d88f408 into ansvisor:main Jul 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n: wire the Agent page to next-intl

2 participants