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.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
fix(i18n): say "1 product" and "1 prompt/location", not the plural (#1741)
Cihan678186727ee7
diff --git a/web/messages/en.json b/web/messages/en.jsonindex d8d856886..8f54f9972 100644--- a/web/messages/en.json+++ b/web/messages/en.json@@ -3438,7 +3438,7 @@"trackedPrompts": "Tracked prompts","trackedPromptsTip": "Prompts answered in this period. The bar is your plan: {used} of {limit} prompt locations in use, shared by every brand in your workspace. A prompt counts once per location it tracks; paused prompts don't count.","trackedPromptsTipUnlimited": "Prompts answered in this period. Your plan has no prompt location limit.",- "slotsLeft": "{count, plural, other {# prompts/locations left to add}}",+ "slotsLeft": "{count, plural, one {# prompt/location left to add} other {# prompts/locations left to add}}","limitReached": "Plan limit reached","overLimit": "{count, plural, other {# over your plan limit}}","unlimited": "{count, plural, one {# active location} other {# active locations}} · Unlimited",@@ -8273,7 +8273,7 @@"unknown": "Shops without it can be left out of results. How OpenAI grants it isn't public yet; a direct feed is the best bet."},"firstWords": {- "title": "First 40 words of descriptions{count, plural, =0 {} other { · # products}}",+ "title": "First 40 words of descriptions{count, plural, =0 {} one { · # product} other { · # products}}","pass": "Every description says what the product is in its first 40 words.","warn": "ChatGPT reads about 40 words. These don't say what the product is in them.","fail": "ChatGPT reads about 40 words. These don't say what the product is in them.",@@ -8292,12 +8292,12 @@"fail": "Without it, ChatGPT Shopping sales can't be told apart from other AI visits. Add utm_source=chatgpt.com&utm_medium=feed to your feed's product links."},"wrongPrice": {- "title": "{count, plural, =0 {Prices in AI answers match yours} other {Wrong price in AI answers · # products}}",+ "title": "{count, plural, =0 {Prices in AI answers match yours} one {Wrong price in AI answers · # product} other {Wrong price in AI answers · # products}}","pass": "Every price AI showed for your products matches your catalog.","fail": "AI shows {seen} for {product}, your price is {yours}."},"resellerCheaper": {- "title": "{count, plural, =0 {No reseller cheaper than you} other {Reseller cheaper than you · # products}}",+ "title": "{count, plural, =0 {No reseller cheaper than you} one {Reseller cheaper than you · # product} other {Reseller cheaper than you · # products}}","pass": "AI links to no reseller selling your products for less.","fail": "AI links to a reseller selling your product for less. See Shelf › Where AI sends shoppers."},diff --git a/web/src/app/[locale]/(dashboard)/dashboard/insights/_kpi-cards.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/insights/_kpi-cards.test.tsxindex 2e9615158..770630892 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/insights/_kpi-cards.test.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/insights/_kpi-cards.test.tsx@@ -89,6 +89,11 @@ describe('the Tracked prompts card', () => {expect(container.textContent).not.toContain('all brands');});+ it('says one more in the singular', () => {+ render(plan(49, 50));+ expect(container.textContent).toContain('1 prompt/location left to add');+ });+it('formats a large count', () => {render(plan(250, 1500));expect(container.textContent).toContain('1,250 prompts/locations left to add');diff --git a/web/src/app/[locale]/(dashboard)/dashboard/shopping/_readiness.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/shopping/_readiness.test.tsxindex c52e3ad67..d7ac04496 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/shopping/_readiness.test.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/shopping/_readiness.test.tsx@@ -90,6 +90,7 @@ describe('ReadinessTab', () => {loading?: boolean;unread?: ('sources' | 'products')[];channelsRead?: 'loading' | 'failed';+ items?: React.ComponentProps<typeof ReadinessTab>['items'];}) {act(() => {root.render(@@ -126,6 +127,25 @@ describe('ReadinessTab', () => {expect(renderTab({})).toContain('AI shopping readiness80 / 100');});+ it('counts one product in the singular', () => {+ const text = renderTab({+ items: [+ { key: 'firstWords', state: 'warn', values: { count: 1 }, action: 'products' },+ {+ key: 'wrongPrice',+ state: 'fail',+ values: { count: 1, product: 'Trail Runner X', seen: 139, yours: 129, currency: 'USD' },+ action: 'products',+ },+ { key: 'resellerCheaper', state: 'fail', values: { count: 1 } },+ ],+ });+ expect(text).toContain('First 40 words of descriptions · 1 product');+ expect(text).toContain('Wrong price in AI answers · 1 product');+ expect(text).toContain('Reseller cheaper than you · 1 product');+ expect(text).not.toContain('1 products');+ });+it("doesn't call a channel without the brand's products while every channel's shelves are read, or unread", () => {expect(renderTab({})).toContain('Microsoft CopilotTracked, yours not shown');const reading = renderTab({ channelsRead: 'loading' });