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

---
 .../taler-wallet-webextension/src/cta/Refund.tsx   | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

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

diff --git a/packages/taler-wallet-webextension/src/cta/Refund.tsx b/packages/taler-wallet-webextension/src/cta/Refund.tsx
index ec32cc37a..8ce008bcd 100644
--- a/packages/taler-wallet-webextension/src/cta/Refund.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Refund.tsx
@@ -20,7 +20,7 @@
  * @author sebasjm
  */
 
-import { Amounts, ApplyRefundResponse, Translate } from "@gnu-taler/taler-util";
+import { Amounts, ApplyRefundResponse, i18n } from "@gnu-taler/taler-util";
 import { h, VNode } from "preact";
 import { useEffect, useState } from "preact/hooks";
 import { AmountView } from "../renderHtml";
@@ -38,27 +38,29 @@ export function View({ applyResult }: ViewProps): VNode {
       <h1>GNU Taler Wallet</h1>
       <article class="fade">
         <h2>
-          <Translate>Refund Status</Translate>
+          <i18n.Translate>Refund Status</i18n.Translate>
         </h2>
         <p>
-          <Translate>
+          <i18n.Translate>
             The product <em>{applyResult.info.summary}</em> has received a total
             effective refund of{" "}
-          </Translate>
+          </i18n.Translate>
           <AmountView amount={applyResult.amountRefundGranted} />.
         </p>
         {applyResult.pendingAtExchange ? (
           <p>
-            <Translate>Refund processing is still in progress.</Translate>
+            <i18n.Translate>
+              Refund processing is still in progress.
+            </i18n.Translate>
           </p>
         ) : null}
         {!Amounts.isZero(applyResult.amountRefundGone) ? (
           <p>
-            <Translate>
+            <i18n.Translate>
               The refund amount of{" "}
               <AmountView amount={applyResult.amountRefundGone} /> could not be
               applied.
-            </Translate>
+            </i18n.Translate>
           </p>
         ) : null}
       </article>
@@ -92,7 +94,7 @@ export function RefundPage({ talerRefundUri }: Props): VNode {
   if (!talerRefundUri) {
     return (
       <span>
-        <Translate>missing taler refund uri</Translate>
+        <i18n.Translate>missing taler refund uri</i18n.Translate>
       </span>
     );
   }
@@ -100,7 +102,7 @@ export function RefundPage({ talerRefundUri }: Props): VNode {
   if (errMsg) {
     return (
       <span>
-        <Translate>Error: {errMsg}</Translate>
+        <i18n.Translate>Error: {errMsg}</i18n.Translate>
       </span>
     );
   }
@@ -108,7 +110,7 @@ export function RefundPage({ talerRefundUri }: Props): VNode {
   if (!applyResult) {
     return (
       <span>
-        <Translate>Updating refund status</Translate>
+        <i18n.Translate>Updating refund status</i18n.Translate>
       </span>
     );
   }
-- 
cgit v1.2.3

