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/cta/TermsOfServiceSection.tsx              | 34 +++++++++++++++-------
 1 file changed, 23 insertions(+), 11 deletions(-)

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

diff --git a/packages/taler-wallet-webextension/src/cta/TermsOfServiceSection.tsx b/packages/taler-wallet-webextension/src/cta/TermsOfServiceSection.tsx
index 00f7bd211..1244b7915 100644
--- a/packages/taler-wallet-webextension/src/cta/TermsOfServiceSection.tsx
+++ b/packages/taler-wallet-webextension/src/cta/TermsOfServiceSection.tsx
@@ -34,7 +34,9 @@ export function TermsOfServiceSection({
             {terms.status === "notfound" && (
               <section>
                 <WarningText>
-                  <Translate>Exchange doesn't have terms of service</Translate>
+                  <i18n.Translate>
+                    Exchange doesn't have terms of service
+                  </i18n.Translate>
                 </WarningText>
               </section>
             )}
@@ -46,21 +48,27 @@ export function TermsOfServiceSection({
           {terms.status === "notfound" && (
             <section>
               <WarningText>
-                <Translate>Exchange doesn't have terms of service</Translate>
+                <i18n.Translate>
+                  Exchange doesn't have terms of service
+                </i18n.Translate>
               </WarningText>
             </section>
           )}
           {terms.status === "new" && (
             <section>
               <ButtonSuccess upperCased onClick={() => onReview(true)}>
-                <Translate>Review exchange terms of service</Translate>
+                <i18n.Translate>
+                  Review exchange terms of service
+                </i18n.Translate>
               </ButtonSuccess>
             </section>
           )}
           {terms.status === "changed" && (
             <section>
               <ButtonWarning upperCased onClick={() => onReview(true)}>
-                <Translate>Review new version of terms of service</Translate>
+                <i18n.Translate>
+                  Review new version of terms of service
+                </i18n.Translate>
               </ButtonWarning>
             </section>
           )}
@@ -72,7 +80,7 @@ export function TermsOfServiceSection({
         {onReview && (
           <section>
             <LinkSuccess upperCased onClick={() => onReview(true)}>
-              <Translate>Show terms of service</Translate>
+              <i18n.Translate>Show terms of service</i18n.Translate>
             </LinkSuccess>
           </section>
         )}
@@ -81,7 +89,9 @@ export function TermsOfServiceSection({
             name="terms"
             enabled={reviewed}
             label={
-              <Translate>I accept the exchange terms of service</Translate>
+              <i18n.Translate>
+                I accept the exchange terms of service
+              </i18n.Translate>
             }
             onToggle={() => {
               onAccept(!reviewed);
@@ -97,9 +107,9 @@ export function TermsOfServiceSection({
       {terms.status !== "notfound" && !terms.content && (
         <section>
           <WarningBox>
-            <Translate>
+            <i18n.Translate>
               The exchange reply with a empty terms of service
-            </Translate>
+            </i18n.Translate>
           </WarningBox>
         </section>
       )}
@@ -120,7 +130,7 @@ export function TermsOfServiceSection({
           )}
           {terms.content.type === "pdf" && (
             <a href={terms.content.location.toString()} download="tos.pdf">
-              <Translate>Download Terms of Service</Translate>
+              <i18n.Translate>Download Terms of Service</i18n.Translate>
             </a>
           )}
         </section>
@@ -128,7 +138,7 @@ export function TermsOfServiceSection({
       {reviewed && onReview && (
         <section>
           <LinkSuccess upperCased onClick={() => onReview(false)}>
-            <Translate>Hide terms of service</Translate>
+            <i18n.Translate>Hide terms of service</i18n.Translate>
           </LinkSuccess>
         </section>
       )}
@@ -138,7 +148,9 @@ export function TermsOfServiceSection({
             name="terms"
             enabled={reviewed}
             label={
-              <Translate>I accept the exchange terms of service</Translate>
+              <i18n.Translate>
+                I accept the exchange terms of service
+              </i18n.Translate>
             }
             onToggle={() => {
               onAccept(!reviewed);
-- 
cgit v1.2.3

