Skip to content

i18n: wire insights page to next-intl - #389

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
Sam-syntax35:i18n/insights-next-intl
Jul 11, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
Sam-syntax35:i18n/insights-next-intl

Conversation

@Sam-syntax35

@Sam-syntax35 Sam-syntax35 commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Wired the Insights dashboard page to next-intl by:

  • importing useTranslations
  • initializing the insights translation namespace
  • replacing the page title with the existing insights.title translation key

This keeps the existing English copy unchanged while aligning the page with the dashboard's localization pattern.

Part of #384.

@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.

Thanks — the title key resolves correctly and the copy is unchanged, so no risk there. A couple of things before this is ready:

  1. The same <h1> appears twice. The empty-state branch (if (trulyEmpty), ~line 1607) still has a hardcoded Answer Engine Insights, while the main render (~1645) now uses t('title'). Please apply t('title') there too so the title is consistent — otherwise a brand with no data still sees the hardcoded string.
  2. Closes #384 will close the whole tracking issue on merge, but Topics and Agent are still open items there. Please change it to Part of #384 (the parenthetical "(Insights portion)" doesn't stop GitHub from auto-closing).

Optional: wiring the other header strings ("Last run:", the description) in the same pass would be a bonus, but keeping this focused on the title is fine as long as it's consistent.

Once the empty-state title and the issue reference are updated, happy to approve.

@Sam-syntax35

Copy link
Copy Markdown
Contributor Author

I've updated the empty-state title to use t("title") and changed the PR description to Part of #384. Please let me know if anything else needs adjusting.

@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.

Both asks addressed — the empty-state <h1> now uses t('title') so the title is consistent in both branches, and the issue reference is now Part of #384 so the tracking issue stays open for the Topics/Agent items. CI is green. Thanks!

gkhngyk
gkhngyk approved these changes Jul 11, 2026 •
@gkhngyk
gkhngyk merged commit 06446a7 into ansvisor:main Jul 11, 2026
3 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.

2 participants