diff options
author | Sebastian <sebasjm@gmail.com> | 2022-02-23 15:44:14 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-02-24 12:50:52 -0300 |
commit | 8c3e57293422d670b93c2f2a19cfc47f3aecc7b1 (patch) | |
tree | 3a44e6284d088632523567ce9f7a9c033d775a7e /packages/taler-wallet-webextension/src/cta/Refund.tsx | |
parent | 8e01ea5433f67679178f5f5ddebbee897878e198 (diff) | |
download | wallet-core-8c3e57293422d670b93c2f2a19cfc47f3aecc7b1.tar.xz |
we are force to use i18n.Translate, otherwise pogen won't find the tag
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Refund.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Refund.tsx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Refund.tsx b/packages/taler-wallet-webextension/src/cta/Refund.tsx index ec32cc37a..8ce008bcd 100644 --- a/packages/taler-wallet-webextension/src/cta/Refund.tsx +++ b/packages/taler-wallet-webextension/src/cta/Refund.tsx @@ -20,7 +20,7 @@ * @author sebasjm */ -import { Amounts, ApplyRefundResponse, Translate } from "@gnu-taler/taler-util"; +import { Amounts, ApplyRefundResponse, i18n } from "@gnu-taler/taler-util"; import { h, VNode } from "preact"; import { useEffect, useState } from "preact/hooks"; import { AmountView } from "../renderHtml"; @@ -38,27 +38,29 @@ export function View({ applyResult }: ViewProps): VNode { <h1>GNU Taler Wallet</h1> <article class="fade"> <h2> - <Translate>Refund Status</Translate> + <i18n.Translate>Refund Status</i18n.Translate> </h2> <p> - <Translate> + <i18n.Translate> The product <em>{applyResult.info.summary}</em> has received a total effective refund of{" "} - </Translate> + </i18n.Translate> <AmountView amount={applyResult.amountRefundGranted} />. </p> {applyResult.pendingAtExchange ? ( <p> - <Translate>Refund processing is still in progress.</Translate> + <i18n.Translate> + Refund processing is still in progress. + </i18n.Translate> </p> ) : null} {!Amounts.isZero(applyResult.amountRefundGone) ? ( <p> - <Translate> + <i18n.Translate> The refund amount of{" "} <AmountView amount={applyResult.amountRefundGone} /> could not be applied. - </Translate> + </i18n.Translate> </p> ) : null} </article> @@ -92,7 +94,7 @@ export function RefundPage({ talerRefundUri }: Props): VNode { if (!talerRefundUri) { return ( <span> - <Translate>missing taler refund uri</Translate> + <i18n.Translate>missing taler refund uri</i18n.Translate> </span> ); } @@ -100,7 +102,7 @@ export function RefundPage({ talerRefundUri }: Props): VNode { if (errMsg) { return ( <span> - <Translate>Error: {errMsg}</Translate> + <i18n.Translate>Error: {errMsg}</i18n.Translate> </span> ); } @@ -108,7 +110,7 @@ export function RefundPage({ talerRefundUri }: Props): VNode { if (!applyResult) { return ( <span> - <Translate>Updating refund status</Translate> + <i18n.Translate>Updating refund status</i18n.Translate> </span> ); } |