Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

i18n: wire the Insights page to next-intl (#518)

Patel Dhrit95447253aade
diff --git a/web/messages/en.json b/web/messages/en.json
index 63f1f42b8..069efbc5b 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -158,6 +158,7 @@
"title": "Answer Engine Insights",
"description": "Monitor how your brand is represented in AI-generated answers.",
"runPrompts": "Run Prompts",
+ "runPromptsNow": "Run Prompts Now",
"promptResults": "Prompt Results",
"platform": "Platform",
"mentions": "Mentions",
@@ -165,8 +166,10 @@
"sentiment": "Sentiment",
"score": "Score",
"positive": "Positive",
+ "positiveSentiment": "Positive Sentiment",
"neutral": "Neutral",
- "negative": "Negative"
+ "negative": "Negative",
+ "sovByPlatform": "Share of Voice by Platform"
},
"topics": {
"addTopic": "Add Topic",
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx
index add72bf99..d6f4cbbb0 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx
@@ -625,6 +625,7 @@ function EmptyState({
isRunning: boolean;
isCloud: boolean;
}) {
+ const t = useTranslations('insights');
return (
<div className="flex flex-col items-center justify-center py-20 text-center">
<BarChart3 className="h-12 w-12 text-muted-foreground/40 mb-4" />
@@ -636,7 +637,7 @@ function EmptyState({
{!isCloud && (
<Button onClick={onRunPrompts} disabled={isRunning} className="mt-6 gap-2">
{isRunning ? <Loader2 className="h-4 w-4 animate-spin" /> : <Play className="h-4 w-4" />}
- Run Prompts Now
+ {t('runPromptsNow')}
</Button>
)}
</div>
@@ -1414,7 +1415,7 @@ export default function InsightsPage() {
onClick={() => router.push('/dashboard/prompts')}
/>
<KpiCard
- title="Mentions"
+ title={t('mentions')}
tooltip="How many times your brand was referenced by name in AI-generated responses."
icon={Zap}
value={summary!.totalMentions}
@@ -1433,7 +1434,7 @@ export default function InsightsPage() {
onClick={() => setBreakdownMetric('mentions')}
/>
<KpiCard
- title="Citations"
+ title={t('citations')}
tooltip="Times your brand's domain was cited as a source with a direct link in AI responses."
icon={Quote}
value={summary!.totalCitations}
@@ -1452,7 +1453,7 @@ export default function InsightsPage() {
onClick={() => router.push('/dashboard/citations')}
/>
<KpiCard
- title="Positive Sentiment"
+ title={t('positiveSentiment')}
tooltip="Percentage of answers that mention your brand and describe it in a positive context."
icon={AlertCircle}
value={`${summary!.positiveSentimentPct}%`}
@@ -1512,7 +1513,7 @@ export default function InsightsPage() {
<CardHeader className="pb-2">
<CardTitle className="flex items-center gap-2 text-sm font-medium">
<PieChart className="h-4 w-4" />
- Share of Voice by Platform
+ {t('sovByPlatform')}
</CardTitle>
{sovData.overallSovChange !== null && sovData.overallSovChange !== 0 && (
<DeltaBadge delta={sovData.overallSovChange} suffix=" pts" />