commit 9c3416396323734c1c46c533ff6c1fec9d94b988 parent 818e0c24e88d10e43a5f3683445ceadbb0684fc0 Author: Sebastian <sebasjm@taler-systems.com> Date: Thu, 11 Jun 2026 09:22:07 -0300 fix: based on suggestion of an next word prediction algorithm Diffstat:
6 files changed, 11 insertions(+), 22 deletions(-)
diff --git a/packages/taler-merchant-webui/src/components/SolveMFA.tsx b/packages/taler-merchant-webui/src/components/SolveMFA.tsx @@ -206,7 +206,7 @@ function SolveChallenge({ !tan ? undefined : ([challenge.challenge_id, { tan }] as const), ); verify.onSuccess = onSolved; - verify.onFail = showError(i18n.str`Verifcation failed`, (fail) => { + verify.onFail = showError(i18n.str`Verification failed`, (fail) => { setValue({}); setTries((t) => ({ numTries: t.numTries + 1, @@ -301,36 +301,25 @@ function SolveChallenge({ > <p> {(function (): VNode { + // prettier-ignore switch (challenge.tan_channel) { case TanChannel.SMS: if (showFull[TanChannel.SMS]) { return ( - <i18n.Translate> - The verification code sent to the phone " - <b>{showFull[TanChannel.SMS]}</b>" - </i18n.Translate> + <i18n.Translate>The verification code sent to the phone "<b>{showFull[TanChannel.SMS]}</b>"</i18n.Translate> ); } return ( - <i18n.Translate> - The verification code sent to the phone number ending with " - <b>{challenge.tan_info}</b>" - </i18n.Translate> + <i18n.Translate>The verification code sent to the phone number ending with "<b>{challenge.tan_info}</b>"</i18n.Translate> ); case TanChannel.EMAIL: if (showFull[TanChannel.EMAIL]) { return ( - <i18n.Translate> - The verification code sent to the email address " - <b>{showFull[TanChannel.EMAIL]}</b>" - </i18n.Translate> + <i18n.Translate>The verification code sent to the email address "<b>{showFull[TanChannel.EMAIL]}</b>"</i18n.Translate> ); } return ( - <i18n.Translate> - The verification code sent to the email address starting - with "<b>{challenge.tan_info}</b>" - </i18n.Translate> + <i18n.Translate>The verification code sent to the email address starting with "<b>{challenge.tan_info}</b>"</i18n.Translate> ); } })()} diff --git a/packages/taler-merchant-webui/src/components/modal/index.tsx b/packages/taler-merchant-webui/src/components/modal/index.tsx @@ -532,7 +532,7 @@ export function ValidBankAccount({ <tr> <td colSpan={2} width="100%"> <i18n.Translate> - As an alternative, in case that your bank already supports the{" "} + As an alternative, in case your bank already supports the{" "} <a target="_blank" rel="noreferrer" diff --git a/packages/taler-merchant-webui/src/paths/instance/accounts/create/CreatePage.tsx b/packages/taler-merchant-webui/src/paths/instance/accounts/create/CreatePage.tsx @@ -195,7 +195,7 @@ export function CreatePage({ onCreated, onBack }: Props): VNode { case HttpStatusCode.NotFound: return i18n.str`The instance does not exist.`; case HttpStatusCode.Conflict: - return i18n.str`The bank account already exist but with different information. Is the name of the account holder correct?`; + return i18n.str`The bank account already exists but with different information. Is the name of the account holder correct?`; default: assertUnreachable(fail); } diff --git a/packages/taler-merchant-webui/src/paths/instance/orders/create/CreatePage.tsx b/packages/taler-merchant-webui/src/paths/instance/orders/create/CreatePage.tsx @@ -342,7 +342,7 @@ export function CreatePage({ case HttpStatusCode.Conflict: return i18n.str`Conflict`; case HttpStatusCode.Gone: - return i18n.str`Product with ID "${fail.body.product_id}" is out of stock. You can sell at least ${fail.body.available_quantity} in the current stock.`; + return i18n.str`Product with ID "${fail.body.product_id}" is out of stock. You can sell at most ${fail.body.available_quantity} in the current stock.`; case HttpStatusCode.UnavailableForLegalReasons: return i18n.str`No payment service would accept a payment because of KYC requirements.`; default: diff --git a/packages/taler-merchant-webui/src/paths/instance/pots/update/UpdatePage.tsx b/packages/taler-merchant-webui/src/paths/instance/pots/update/UpdatePage.tsx @@ -168,7 +168,7 @@ export function UpdatePage({ moneyPot, onUpdated, onBack }: Props): VNode { /> <Input<Entity> name="description" - label={i18n.str`Descripton`} + label={i18n.str`Description`} // tooltip={i18n.str`Name of the category`} /> <InputArray<Entity> diff --git a/packages/taler-merchant-webui/src/paths/settings/index.tsx b/packages/taler-merchant-webui/src/paths/settings/index.tsx @@ -170,7 +170,7 @@ export function Settings({ onClose }: { onClose?: () => void }): VNode { <NotificationCardBulma notification={{ message: i18n.str`Testing features`, - description: i18n.str`Only use beta-tester mode if you know how the application works. Features enabled in this mode requires more work.`, + description: i18n.str`Only use beta-tester mode if you know how the application works. Features enabled in this mode require more work.`, type: "WARN", }} />