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/Tip.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/Tip.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Tip.tsx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Tip.tsx b/packages/taler-wallet-webextension/src/cta/Tip.tsx index 9bb03b7ac..ff86ce8c7 100644 --- a/packages/taler-wallet-webextension/src/cta/Tip.tsx +++ b/packages/taler-wallet-webextension/src/cta/Tip.tsx @@ -20,7 +20,7 @@ * @author sebasjm <dold@taler.net> */ -import { PrepareTipResult, Translate } from "@gnu-taler/taler-util"; +import { PrepareTipResult, i18n } from "@gnu-taler/taler-util"; import { h, VNode } from "preact"; import { useEffect, useState } from "preact/hooks"; import { Loading } from "../components/Loading"; @@ -46,28 +46,28 @@ export function View({ <article class="fade"> {prepareTipResult.accepted ? ( <span> - <Translate> + <i18n.Translate> Tip from <code>{prepareTipResult.merchantBaseUrl}</code> accepted. Check your transactions list for more details. - </Translate> + </i18n.Translate> </span> ) : ( <div> <p> - <Translate> + <i18n.Translate> The merchant <code>{prepareTipResult.merchantBaseUrl}</code> is offering you a tip of{" "} <strong> <AmountView amount={prepareTipResult.tipAmountEffective} /> </strong>{" "} via the exchange <code>{prepareTipResult.exchangeBaseUrl}</code> - </Translate> + </i18n.Translate> </p> <button onClick={onAccept}> - <Translate>Accept tip</Translate> + <i18n.Translate>Accept tip</i18n.Translate> </button> <button onClick={onIgnore}> - <Translate>Ignore</Translate> + <i18n.Translate>Ignore</i18n.Translate> </button> </div> )} @@ -108,7 +108,7 @@ export function TipPage({ talerTipUri }: Props): VNode { if (!talerTipUri) { return ( <span> - <Translate>missing tip uri</Translate> + <i18n.Translate>missing tip uri</i18n.Translate> </span> ); } @@ -116,7 +116,7 @@ export function TipPage({ talerTipUri }: Props): VNode { if (tipIgnored) { return ( <span> - <Translate>You've ignored the tip.</Translate> + <i18n.Translate>You've ignored the tip.</i18n.Translate> </span> ); } |