Skip to content

Commit

Permalink
Merge pull request #1765 from myxmaster/locale_strings_lightning-addr…
Browse files Browse the repository at this point in the history
…ess-settings

Added some locale strings for LightningAddressSettings
  • Loading branch information
kaloudis authored Oct 16, 2023
2 parents 8d51240 + b371ae8 commit 66e1063
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
3 changes: 3 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,12 @@
"views.Settings.LightningAddressSettings.title": "Lightning address settings",
"views.Settings.LightningAddressSettings.automaticallyAccept": "Automatically accept payments on startup",
"views.Settings.LightningAddressSettings.automaticallyAcceptAttestationLevel": "Attestation level for automatic acceptance",
"views.Settings.LightningAddressSettings.automaticallyAcceptAttestationLevel.successOnly": "Successful only",
"views.Settings.LightningAddressSettings.automaticallyAcceptAttestationLevel.successAndNotFound": "Successful and not found",
"views.Settings.LightningAddressSettings.automaticallyRequestOlympusChannels": "Automatically request channels from OLYMPUS",
"views.Settings.LightningAddressSettings.allowComments": "Allow comments",
"views.Settings.LightningAddressSettings.notifications": "Notifications",
"views.Settings.LightningAddressSettings.notifications.push": "Push",
"views.Settings.LightningAddressSettings.routeHintsExplainer1": "Including route hints will help the LSP forward your payment to you using your unannounced channels.",
"views.Settings.LightningAddressSettings.routeHintsExplainer2": "This has a privacy tradeoff in that it will expose your unannounced channels to the LSP.",
"views.Settings.LightningAddressInfo.title": "Lightning address info",
Expand Down
30 changes: 24 additions & 6 deletions stores/SettingsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,15 +725,33 @@ export const DEFAULT_NOSTR_RELAYS = [
];

export const NOTIFICATIONS_PREF_KEYS = [
{ key: 'Disabled', value: 0 },
{ key: 'Push', value: 1 },
{ key: 'Nostr', value: 2 }
{ key: 'Disabled', translateKey: 'views.Settings.disabled', value: 0 },
{
key: 'Push',
translateKey:
'views.Settings.LightningAddressSettings.notifications.push',
value: 1
},
{
key: 'Nostr',
value: 2
}
];

export const AUTOMATIC_ATTESTATION_KEYS = [
{ key: 'Disabled', value: 0 },
{ key: 'Successful only', value: 1 },
{ key: 'Successful and not found', value: 2 }
{ key: 'Disabled', translateKey: 'views.Settings.disabled', value: 0 },
{
key: 'Successful only',
translateKey:
'views.Settings.LightningAddressSettings.automaticallyAcceptAttestationLevel.successOnly',
value: 1
},
{
key: 'Successful and not found',
translateKey:
'views.Settings.LightningAddressSettings.automaticallyAcceptAttestationLevel.successAndNotFound',
value: 2
}
];

const STORAGE_KEY = 'zeus-settings';
Expand Down

0 comments on commit 66e1063

Please sign in to comment.