Repository navigation
i18n: wire insights page to next-intl - #389
Conversation
gkhngyk
left a comment
There was a problem hiding this comment.
Thanks — the title key resolves correctly and the copy is unchanged, so no risk there. A couple of things before this is ready:
- The same
<h1>appears twice. The empty-state branch (if (trulyEmpty), ~line 1607) still has a hardcodedAnswer Engine Insights, while the main render (~1645) now usest('title'). Please applyt('title')there too so the title is consistent — otherwise a brand with no data still sees the hardcoded string. Closes #384will close the whole tracking issue on merge, but Topics and Agent are still open items there. Please change it toPart 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.
|
I've updated the empty-state title to use |
gkhngyk
left a comment
There was a problem hiding this comment.
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!
Summary
Wired the Insights dashboard page to
next-intlby:useTranslationsinsightstranslation namespaceinsights.titletranslation keyThis keeps the existing English copy unchanged while aligning the page with the dashboard's localization pattern.
Part of #384.