From 41850c9f14baa5330919c6dabf161b1aaeda7376 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 23 Feb 2022 15:18:37 -0300
Subject: add i18n where was missing

---
 packages/taler-wallet-webextension/src/cta/Tip.tsx | 44 +++++++++++++++-------
 1 file changed, 30 insertions(+), 14 deletions(-)

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

diff --git a/packages/taler-wallet-webextension/src/cta/Tip.tsx b/packages/taler-wallet-webextension/src/cta/Tip.tsx
index 3f8b09bd1..9bb03b7ac 100644
--- a/packages/taler-wallet-webextension/src/cta/Tip.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Tip.tsx
@@ -17,10 +17,10 @@
 /**
  * Page shown to the user to accept or ignore a tip from a merchant.
  *
- * @author Florian Dold <dold@taler.net>
+ * @author sebasjm <dold@taler.net>
  */
 
-import { PrepareTipResult } from "@gnu-taler/taler-util";
+import { PrepareTipResult, Translate } from "@gnu-taler/taler-util";
 import { h, VNode } from "preact";
 import { useEffect, useState } from "preact/hooks";
 import { Loading } from "../components/Loading";
@@ -46,21 +46,29 @@ export function View({
       <article class="fade">
         {prepareTipResult.accepted ? (
           <span>
-            Tip from <code>{prepareTipResult.merchantBaseUrl}</code> accepted.
-            Check your transactions list for more details.
+            <Translate>
+              Tip from <code>{prepareTipResult.merchantBaseUrl}</code> accepted.
+              Check your transactions list for more details.
+            </Translate>
           </span>
         ) : (
           <div>
             <p>
-              The merchant <code>{prepareTipResult.merchantBaseUrl}</code> is
-              offering you a tip of{" "}
-              <strong>
-                <AmountView amount={prepareTipResult.tipAmountEffective} />
-              </strong>{" "}
-              via the exchange <code>{prepareTipResult.exchangeBaseUrl}</code>
+              <Translate>
+                The merchant <code>{prepareTipResult.merchantBaseUrl}</code> is
+                offering you a tip of{" "}
+                <strong>
+                  <AmountView amount={prepareTipResult.tipAmountEffective} />
+                </strong>{" "}
+                via the exchange <code>{prepareTipResult.exchangeBaseUrl}</code>
+              </Translate>
             </p>
-            <button onClick={onAccept}>Accept tip</button>
-            <button onClick={onIgnore}>Ignore</button>
+            <button onClick={onAccept}>
+              <Translate>Accept tip</Translate>
+            </button>
+            <button onClick={onIgnore}>
+              <Translate>Ignore</Translate>
+            </button>
           </div>
         )}
       </article>
@@ -98,11 +106,19 @@ export function TipPage({ talerTipUri }: Props): VNode {
   };
 
   if (!talerTipUri) {
-    return <span>missing tip uri</span>;
+    return (
+      <span>
+        <Translate>missing tip uri</Translate>
+      </span>
+    );
   }
 
   if (tipIgnored) {
-    return <span>You've ignored the tip.</span>;
+    return (
+      <span>
+        <Translate>You've ignored the tip.</Translate>
+      </span>
+    );
   }
 
   if (!prepareTipResult) {
-- 
cgit v1.2.3

