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/Deposit.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/Deposit.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Deposit.tsx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Deposit.tsx b/packages/taler-wallet-webextension/src/cta/Deposit.tsx index 5adc641f4..82d898d77 100644 --- a/packages/taler-wallet-webextension/src/cta/Deposit.tsx +++ b/packages/taler-wallet-webextension/src/cta/Deposit.tsx @@ -111,7 +111,7 @@ export function DepositPage({ talerPayUri, goBack }: Props): VNode { if (!talerPayUri) { return ( <span> - <Translate>missing pay uri</Translate> + <i18n.Translate>missing pay uri</i18n.Translate> </span> ); } @@ -122,14 +122,14 @@ export function DepositPage({ talerPayUri, goBack }: Props): VNode { <WalletAction> <LogoHeader /> <h2> - <Translate>Digital cash payment</Translate> + <i18n.Translate>Digital cash payment</i18n.Translate> </h2> <section> <ErrorTalerOperation title={ - <Translate> + <i18n.Translate> Could not get the payment information for this order - </Translate> + </i18n.Translate> } error={payErrMsg?.operationError} /> @@ -142,13 +142,13 @@ export function DepositPage({ talerPayUri, goBack }: Props): VNode { <WalletAction> <LogoHeader /> <h2> - <Translate>Digital cash payment</Translate> + <i18n.Translate>Digital cash payment</i18n.Translate> </h2> <section> <p> - <Translate> + <i18n.Translate> Could not get the payment information for this order - </Translate> + </i18n.Translate> </p> <ErrorBox>{payErrMsg}</ErrorBox> </section> @@ -157,7 +157,7 @@ export function DepositPage({ talerPayUri, goBack }: Props): VNode { } return ( <span> - <Translate>Loading payment information</Translate> ... + <i18n.Translate>Loading payment information</i18n.Translate> ... </span> ); } @@ -205,28 +205,28 @@ export function PaymentRequestView({ <LogoHeader /> <h2> - <Translate>Digital cash deposit</Translate> + <i18n.Translate>Digital cash deposit</i18n.Translate> </h2> {payStatus.status === PreparePayResultType.AlreadyConfirmed && (payStatus.paid ? ( <SuccessBox> - <Translate>Already paid</Translate> + <i18n.Translate>Already paid</i18n.Translate> </SuccessBox> ) : ( <WarningBox> - <Translate>Already claimed</Translate> + <i18n.Translate>Already claimed</i18n.Translate> </WarningBox> ))} {payResult && payResult.type === ConfirmPayResultType.Done && ( <SuccessBox> <h3> - <Translate>Payment complete</Translate> + <i18n.Translate>Payment complete</i18n.Translate> </h3> <p> {!payResult.contractTerms.fulfillment_message ? ( - <Translate> + <i18n.Translate> You will now be sent back to the merchant you came from. - </Translate> + </i18n.Translate> ) : ( payResult.contractTerms.fulfillment_message )} @@ -238,7 +238,7 @@ export function PaymentRequestView({ Amounts.isNonZero(totalFees) && ( <Part big - title={<Translate>Total to pay</Translate>} + title={<i18n.Translate>Total to pay</i18n.Translate>} text={amountToPretty( Amounts.parseOrThrow(payStatus.amountEffective), )} @@ -247,7 +247,7 @@ export function PaymentRequestView({ )} <Part big - title={<Translate>Purchase amount</Translate>} + title={<i18n.Translate>Purchase amount</i18n.Translate>} text={amountToPretty(Amounts.parseOrThrow(payStatus.amountRaw))} kind="neutral" /> @@ -255,25 +255,25 @@ export function PaymentRequestView({ <Fragment> <Part big - title={<Translate>Fee</Translate>} + title={<i18n.Translate>Fee</i18n.Translate>} text={amountToPretty(totalFees)} kind="negative" /> </Fragment> )} <Part - title={<Translate>Merchant</Translate>} + title={<i18n.Translate>Merchant</i18n.Translate>} text={contractTerms.merchant.name} kind="neutral" /> <Part - title={<Translate>Purchase</Translate>} + title={<i18n.Translate>Purchase</i18n.Translate>} text={contractTerms.summary} kind="neutral" /> {contractTerms.order_id && ( <Part - title={<Translate>Receipt</Translate>} + title={<i18n.Translate>Receipt</i18n.Translate>} text={`#${contractTerms.order_id}`} kind="neutral" /> |