From 9d112961c012a34e099fae8515f51d90522cfb21 Mon Sep 17 00:00:00 2001 From: Mitchell Kotler Date: Wed, 29 Nov 2023 12:59:17 -0500 Subject: [PATCH] fix cost -> price --- src/addons/dispatch/Premium.svelte | 4 ++-- src/addons/fixtures/addons.json | 2 +- src/langs/json/en.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/addons/dispatch/Premium.svelte b/src/addons/dispatch/Premium.svelte index a8e03d702..7d1950aae 100644 --- a/src/addons/dispatch/Premium.svelte +++ b/src/addons/dispatch/Premium.svelte @@ -28,7 +28,7 @@ $: isIndividualOrg = typeof user?.organization !== "string" && user?.organization?.individual; $: isPremium = addon?.parameters?.categories?.includes("premium") ?? false; - const { amount, unit, cost } = addon?.parameters?.cost ?? {}; + const { amount, unit, price } = addon?.parameters?.cost ?? {}; function toggleSpendingLimit( event: Event & { currentTarget: HTMLInputElement }, @@ -153,7 +153,7 @@ {#if amount}

{$_("addonDispatchDialog.cost", { - values: { amount: amount, unit: unit, cost: cost || 1}, + values: { amount: amount, unit: unit, price: price || 1}, })}

{/if} diff --git a/src/addons/fixtures/addons.json b/src/addons/fixtures/addons.json index adf4ab2ea..eae9e4169 100644 --- a/src/addons/fixtures/addons.json +++ b/src/addons/fixtures/addons.json @@ -603,7 +603,7 @@ "cost": { "unit": "document", "amount": 1, - "cost": 14 + "price": 14 }, "categories": ["ai", "premium"], "properties": { diff --git a/src/langs/json/en.json b/src/langs/json/en.json index 5446839df..aae1b6a34 100644 --- a/src/langs/json/en.json +++ b/src/langs/json/en.json @@ -763,7 +763,7 @@ "runSuccess": "Add-on is now running", "selectionHelp": "From the main list, select individual documents or run a search for the documents you want, for example “+project:mueller-docs-200005”.", "selectionLearnMore": "Learn more about how Add-Ons work", - "cost": "{amount} {unit} per {cost, plural, one {credit} other {# credits}}", + "cost": "{amount} {unit} per {price, plural, one {credit} other {# credits}}", "premiumUpgrade": { "message": "This Premium Add-On uses AI to perform advanced analysis. Upgrade to a {plan} account to utilize this and other powerful Add-Ons.", "callToAction": "Upgrade Plan",