From 2cff1edb7d32bc2eddf2715e51fd74fa36909041 Mon Sep 17 00:00:00 2001 From: shubham Date: Mon, 16 Sep 2024 13:04:56 +0530 Subject: [PATCH] Localize strings --- locales/en.json | 5 +++++ views/Settings/CustodialWalletWarning.tsx | 27 ++++++++++++++--------- 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/locales/en.json b/locales/en.json index 3e8bfa10a..f0febea0e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1144,6 +1144,11 @@ "views.Settings.CustodialWalletWarning.graph4": "To get started with your own self-custodial wallet, press the button below, and hit the 'Create mainnet wallet' button on the next screen.", "views.Settings.CustodialWalletWarning.create": "Create self-custodial wallet", "views.Settings.CustodialWalletWarning.dismissWarning": "Dismiss warning", + "views.Settings.CustodialWalletWarning.dismissWarningHeader": "Please confirm the following to dismiss the warning:", + "views.Settings.CustodialWalletWarning.dismissWarning1": "I know that I don't have custody of the funds in this wallet without the 12 or 24 word seed phrase", + "views.Settings.CustodialWalletWarning.dismissWarning2": "I know that an LNDHub account password is not the same as a seed phrase", + "views.Settings.CustodialWalletWarning.dismissWarning3": "I either set up this connection myself or I trust the person who set it up", + "views.Settings.CustodialWalletWarning.dismissWarning4": "I'm not just lying to get this over with", "views.PayCode.bolt12": "BOLT 12", "views.PayCode.offerId": "Offer ID", "views.PayCode.createOffer": "Create pay code", diff --git a/views/Settings/CustodialWalletWarning.tsx b/views/Settings/CustodialWalletWarning.tsx index 9edab2b71..1ddbb384e 100644 --- a/views/Settings/CustodialWalletWarning.tsx +++ b/views/Settings/CustodialWalletWarning.tsx @@ -223,14 +223,23 @@ export default class CustodialWalletWarning extends React.Component< color: themeColor('text') }} > - Please confirm the following to dismiss the - warning: + {localeString( + 'views.Settings.CustodialWalletWarning.dismissWarningHeader' + )} {[ - "I know that I don't have custody of the funds in this wallet without the 12 or 24 word seed phrase", - 'I know that an LNDHub account password is not the same as a seed phrase', - 'I either set up this connection myself or I trust the person who set it up', - "I'm not just lying to get this over with" + localeString( + 'views.Settings.CustodialWalletWarning.dismissWarning1' + ), + localeString( + 'views.Settings.CustodialWalletWarning.dismissWarning2' + ), + localeString( + 'views.Settings.CustodialWalletWarning.dismissWarning3' + ), + localeString( + 'views.Settings.CustodialWalletWarning.dismissWarning4' + ) ].map((title, index) => (