From 8c3e57293422d670b93c2f2a19cfc47f3aecc7b1 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 23 Feb 2022 15:44:14 -0300
Subject: we are force to use i18n.Translate, otherwise pogen won't find the
 tag

---
 .../src/wallet/ReserveCreated.tsx                  | 27 ++++++++++------------
 1 file changed, 12 insertions(+), 15 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/ReserveCreated.tsx')

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>
-- 
cgit v1.2.3

