Skip to content

Commit

Permalink
Localize strings
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamkmr04 committed Sep 16, 2024
1 parent fec86d0 commit 2cff1ed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
5 changes: 5 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
27 changes: 16 additions & 11 deletions views/Settings/CustodialWalletWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)}
</Text>
{[
"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) => (
<CheckBox
key={index}
Expand Down Expand Up @@ -268,7 +277,7 @@ export default class CustodialWalletWarning extends React.Component<
containerStyle={{ paddingBottom: 20 }}
/>
<Button
title="CLOSE"
title={localeString('general.close')}
onPress={() => {
this.toggleModal();
}}
Expand Down Expand Up @@ -312,9 +321,5 @@ const styles = StyleSheet.create({
marginTop: 20,
width: '100%',
alignItems: 'center'
},
closeButton: {
marginTop: 10,
color: 'blue'
}
});

0 comments on commit 2cff1ed

Please sign in to comment.