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/wallet/DepositPage.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/wallet/DepositPage.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DepositPage.tsx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DepositPage.tsx b/packages/taler-wallet-webextension/src/wallet/DepositPage.tsx index 7a5e02d3b..d1d618e9f 100644 --- a/packages/taler-wallet-webextension/src/wallet/DepositPage.tsx +++ b/packages/taler-wallet-webextension/src/wallet/DepositPage.tsx @@ -19,7 +19,7 @@ import { Amounts, AmountString, PaytoUri, - Translate, + i18n, } from "@gnu-taler/taler-util"; import { DepositFee } from "@gnu-taler/taler-wallet-core/src/operations/deposits"; import { Fragment, h, VNode } from "preact"; @@ -135,7 +135,7 @@ export function View({ if (!balance) { return ( <div> - <Translate>no balance</Translate> + <i18n.Translate>no balance</i18n.Translate> </div> ); } @@ -143,10 +143,12 @@ export function View({ return ( <WarningBox> <p> - <Translate>There is no known bank account to send money to</Translate> + <i18n.Translate> + There is no known bank account to send money to + </i18n.Translate> </p> <ButtonBoxWarning> - <Translate>Withdraw</Translate> + <i18n.Translate>Withdraw</i18n.Translate> </ButtonBoxWarning> </WarningBox> ); @@ -172,12 +174,12 @@ export function View({ return ( <Fragment> <h2> - <Translate>Send {currency} to your account</Translate> + <i18n.Translate>Send {currency} to your account</i18n.Translate> </h2> <section> <Input> <SelectList - label={<Translate>Bank account IBAN number</Translate>} + label={<i18n.Translate>Bank account IBAN number</i18n.Translate>} list={accountMap} name="account" value={String(accountIdx)} @@ -186,7 +188,7 @@ export function View({ </Input> <InputWithLabel invalid={!!error}> <label> - <Translate>Amount</Translate> + <i18n.Translate>Amount</i18n.Translate> </label> <div> <span>{currency}</span> @@ -210,7 +212,7 @@ export function View({ <Fragment> <InputWithLabel> <label> - <Translate>Deposit fee</Translate> + <i18n.Translate>Deposit fee</i18n.Translate> </label> <div> <span>{currency}</span> @@ -224,7 +226,7 @@ export function View({ <InputWithLabel> <label> - <Translate>Total deposit</Translate> + <i18n.Translate>Total deposit</i18n.Translate> </label> <div> <span>{currency}</span> @@ -242,13 +244,13 @@ export function View({ <div /> {unableToDeposit ? ( <ButtonPrimary disabled> - <Translate>Deposit</Translate> + <i18n.Translate>Deposit</i18n.Translate> </ButtonPrimary> ) : ( <ButtonPrimary onClick={() => onSend(accountURI, amountStr)}> - <Translate> + <i18n.Translate> Deposit {Amounts.stringifyValue(totalToDeposit)} {currency} - </Translate> + </i18n.Translate> </ButtonPrimary> )} </footer> |