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/ReserveCreated.tsx | |
| parent | 8e01ea5433f67679178f5f5ddebbee897878e198 (diff) | |
we are force to use i18n.Translate, otherwise pogen won't find the tag
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx')
| -rw-r--r-- | packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx | 27 | 
1 files changed, 12 insertions, 15 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx b/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx index 7de719fc6..2c0e2fd31 100644 --- a/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx +++ b/packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx @@ -1,9 +1,4 @@ -import { -  AmountJson, -  Amounts, -  parsePaytoUri, -  Translate, -} from "@gnu-taler/taler-util"; +import { AmountJson, parsePaytoUri, i18n } from "@gnu-taler/taler-util";  import { Fragment, h, VNode } from "preact";  import { BankDetailsByPaytoType } from "../components/BankDetailsByPaytoType";  import { QR } from "../components/QR"; @@ -29,7 +24,9 @@ export function ReserveCreated({    if (!paytoURI) {      return (        <div> -        <Translate>could not parse payto uri from exchange {payto}</Translate> +        <i18n.Translate> +          could not parse payto uri from exchange {payto} +        </i18n.Translate>        </div>      );    } @@ -37,13 +34,13 @@ export function ReserveCreated({      <Fragment>        <section>          <h1> -          <Translate>Exchange is ready for withdrawal</Translate> +          <i18n.Translate>Exchange is ready for withdrawal</i18n.Translate>          </h1>          <p> -          <Translate> +          <i18n.Translate>              To complete the process you need to wire              <b>{amountToString(amount)}</b> to the exchange bank account -          </Translate> +          </i18n.Translate>          </p>          <BankDetailsByPaytoType            amount={amountToString(amount)} @@ -53,27 +50,27 @@ export function ReserveCreated({          />          <p>            <WarningBox> -            <Translate> +            <i18n.Translate>                Make sure to use the correct subject, otherwise the money will not                arrive in this wallet. -            </Translate> +            </i18n.Translate>            </WarningBox>          </p>        </section>        <section>          <p> -          <Translate> +          <i18n.Translate>              Alternative, you can also scan this QR code or open              <a href={payto}>this link</a> if you have a banking app installed              that supports RFC 8905 -          </Translate> +          </i18n.Translate>          </p>          <QR text={payto} />        </section>        <footer>          <div />          <ButtonDestructive onClick={onCancel}> -          <Translate>Cancel withdrawal</Translate> +          <i18n.Translate>Cancel withdrawal</i18n.Translate>          </ButtonDestructive>        </footer>      </Fragment>  | 
