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/Withdraw.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/Withdraw.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw.tsx | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx index 7d36a6084..7c9745ddc 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx +++ b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx @@ -119,13 +119,15 @@ export function View({ <WalletAction> <LogoHeader /> <h2> - <Translate>Digital cash withdrawal</Translate> + <i18n.Translate>Digital cash withdrawal</i18n.Translate> </h2> {withdrawError && ( <ErrorTalerOperation title={ - <Translate>Could not finish the withdrawal operation</Translate> + <i18n.Translate> + Could not finish the withdrawal operation + </i18n.Translate> } error={withdrawError.operationError} /> @@ -133,19 +135,19 @@ export function View({ <section> <Part - title={<Translate>Total to withdraw</Translate>} + title={<i18n.Translate>Total to withdraw</i18n.Translate>} text={amountToString(Amounts.sub(amount, withdrawalFee).amount)} kind="positive" /> {Amounts.isNonZero(withdrawalFee) && ( <Fragment> <Part - title={<Translate>Chosen amount</Translate>} + title={<i18n.Translate>Chosen amount</i18n.Translate>} text={amountToString(amount)} kind="neutral" /> <Part - title={<Translate>Exchange fee</Translate>} + title={<i18n.Translate>Exchange fee</i18n.Translate>} text={amountToString(withdrawalFee)} kind="negative" /> @@ -153,7 +155,7 @@ export function View({ )} {exchangeBaseUrl && ( <Part - title={<Translate>Exchange</Translate>} + title={<i18n.Translate>Exchange</i18n.Translate>} text={exchangeBaseUrl} kind="neutral" big @@ -166,7 +168,7 @@ export function View({ <Fragment> <div> <SelectList - label={<Translate>Known exchanges</Translate>} + label={<i18n.Translate>Known exchanges</i18n.Translate>} list={exchanges} value={nextExchange} name="switchingExchange" @@ -183,15 +185,15 @@ export function View({ }} > {nextExchange === undefined ? ( - <Translate>Cancel exchange selection</Translate> + <i18n.Translate>Cancel exchange selection</i18n.Translate> ) : ( - <Translate>Confirm exchange selection</Translate> + <i18n.Translate>Confirm exchange selection</i18n.Translate> )} </LinkSuccess> </Fragment> ) : ( <LinkSuccess upperCased onClick={() => setSwitchingExchange(true)}> - <Translate>Switch exchange</Translate> + <i18n.Translate>Switch exchange</i18n.Translate> </LinkSuccess> )} </section> @@ -210,7 +212,7 @@ export function View({ disabled={!exchangeBaseUrl || confirmDisabled} onClick={doWithdrawAndCheckError} > - <Translate>Confirm withdrawal</Translate> + <i18n.Translate>Confirm withdrawal</i18n.Translate> </ButtonSuccess> )} {terms.status === "notfound" && ( @@ -219,7 +221,7 @@ export function View({ disabled={!exchangeBaseUrl} onClick={doWithdrawAndCheckError} > - <Translate>Withdraw anyway</Translate> + <i18n.Translate>Withdraw anyway</i18n.Translate> </ButtonWarning> )} </section> @@ -282,7 +284,9 @@ export function WithdrawPageWithParsedURI({ if (detailsHook.hasError) { return ( <LoadingError - title={<Translate>Could not load the withdrawal details</Translate>} + title={ + <i18n.Translate>Could not load the withdrawal details</i18n.Translate> + } error={detailsHook} /> ); @@ -337,7 +341,7 @@ export function WithdrawPage({ talerWithdrawUri }: Props): VNode { if (!talerWithdrawUri) { return ( <span> - <Translate>missing withdraw uri</Translate> + <i18n.Translate>missing withdraw uri</i18n.Translate> </span> ); } @@ -347,7 +351,9 @@ export function WithdrawPage({ talerWithdrawUri }: Props): VNode { if (uriInfoHook.hasError) { return ( <LoadingError - title={<Translate>Could not get the info from the URI</Translate>} + title={ + <i18n.Translate>Could not get the info from the URI</i18n.Translate> + } error={uriInfoHook} /> ); |