Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some locale strings for LightningAddressSettings #1765

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,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