Skip to content

Commit 4df99d8

Browse files
authored
Feature/npc (#424)
* Add NPC lightning address settings * Add NPC account import flow * Tighten NPC account management * Refine NPC settings design * Make NPC username purchase explicit
1 parent a8c6d01 commit 4df99d8

16 files changed

Lines changed: 1906 additions & 86 deletions

File tree

assets/translations/de.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,40 @@
439439
"prepairZapData": "Transaktionsdaten werden vorbereitet...",
440440
"lastUpdated": "Zuletzt aktualisiert",
441441
"mintInfoUpdated": "Mint-Info aktualisiert!",
442-
"mintInfoUpdateFailed": "Fehler beim Aktualisieren der Mint-Info"
442+
"mintInfoUpdateFailed": "Fehler beim Aktualisieren der Mint-Info",
443+
"npcSettings": "Lightning address",
444+
"npcDefaultAccount": "Default",
445+
"npcTapToCopy": "Tap to copy",
446+
"npcUsernameLabel": "Custom username",
447+
"npcUsernamePlaceholder": "optional username",
448+
"npcPurchaseUsername": "Save username",
449+
"npcSetUsername": "Set Username",
450+
"npcRequestUsername": "Request username",
451+
"npcUsernameFeePrompt": "Do you want to set this username for a fee of {{amount}} sats?",
452+
"npcReceiveTitle": "NPC Lightning addresses",
453+
"npcReceiveHint": "Receive Lightning payments into your local Cashu wallet.",
454+
"npcAccountsLabel": "Accounts",
455+
"npcLocalBalance": "Local balance",
456+
"npcReceiveAddress": "Receive address",
457+
"npcSeedKey": "Seed key",
458+
"npcImportedKey": "Imported key",
459+
"npcActive": "Active",
460+
"npcSyncing": "Syncing",
461+
"npcPaused": "Paused",
462+
"npcNpubFallback": "Using your npub until a username is saved",
463+
"npcSyncAll": "Sync all",
464+
"npcSynced": "NPC account synced",
465+
"npcAccountAdded": "NPC account added",
466+
"npcAccountRemoved": "NPC account removed",
467+
"npcUsernameSaved": "Username saved",
468+
"npcAddAccountTitle": "Add NPC account",
469+
"npcAddAccountHint": "Import an existing Nostr key or derive a new key from your seed.",
470+
"npcPrivateKeyLabel": "Private key",
471+
"npcPrivateKeyPlaceholder": "nsec or hex",
472+
"npcPrivateKeyHint": "Imported keys are stored in secure storage on this device.",
473+
"npcPrivateKeyRequired": "Enter an nsec or hex private key.",
474+
"npcImportPrivateKey": "Import private key",
475+
"npcDeriveAccount": "Derive new key"
443476
},
444477
"topNav": {
445478
"about": "Über uns",
@@ -451,6 +484,7 @@
451484
"currency": "Währung",
452485
"mintSettings": "Mint Management",
453486
"nfcSettings": "NFC Einstellungen",
487+
"npcSettingsTitle": "Lightning address",
454488
"security": "Sicherheit",
455489
"settings": "Optionen",
456490
"privacy": "Privatsphäre",

assets/translations/en.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,40 @@
440440
"prepairZapData": "Preparing the transaction data...",
441441
"lastUpdated": "Last updated",
442442
"mintInfoUpdated": "Mint info updated!",
443-
"mintInfoUpdateFailed": "Failed to update mint info"
443+
"mintInfoUpdateFailed": "Failed to update mint info",
444+
"npcSettings": "Lightning address",
445+
"npcDefaultAccount": "Default",
446+
"npcTapToCopy": "Tap to copy",
447+
"npcUsernameLabel": "Custom username",
448+
"npcUsernamePlaceholder": "optional username",
449+
"npcPurchaseUsername": "Save username",
450+
"npcSetUsername": "Set Username",
451+
"npcRequestUsername": "Request username",
452+
"npcUsernameFeePrompt": "Do you want to set this username for a fee of {{amount}} sats?",
453+
"npcReceiveTitle": "NPC Lightning addresses",
454+
"npcReceiveHint": "Receive Lightning payments into your local Cashu wallet.",
455+
"npcAccountsLabel": "Accounts",
456+
"npcLocalBalance": "Local balance",
457+
"npcReceiveAddress": "Receive address",
458+
"npcSeedKey": "Seed key",
459+
"npcImportedKey": "Imported key",
460+
"npcActive": "Active",
461+
"npcSyncing": "Syncing",
462+
"npcPaused": "Paused",
463+
"npcNpubFallback": "Using your npub until a username is saved",
464+
"npcSyncAll": "Sync all",
465+
"npcSynced": "NPC account synced",
466+
"npcAccountAdded": "NPC account added",
467+
"npcAccountRemoved": "NPC account removed",
468+
"npcUsernameSaved": "Username saved",
469+
"npcAddAccountTitle": "Add NPC account",
470+
"npcAddAccountHint": "Import an existing Nostr key or derive a new key from your seed.",
471+
"npcPrivateKeyLabel": "Private key",
472+
"npcPrivateKeyPlaceholder": "nsec or hex",
473+
"npcPrivateKeyHint": "Imported keys are stored in secure storage on this device.",
474+
"npcPrivateKeyRequired": "Enter an nsec or hex private key.",
475+
"npcImportPrivateKey": "Import private key",
476+
"npcDeriveAccount": "Derive new key"
444477
},
445478
"topNav": {
446479
"about": "About us",
@@ -452,6 +485,7 @@
452485
"currency": "Currency",
453486
"mintSettings": "Mint management",
454487
"nfcSettings": "NFC Settings",
488+
"npcSettingsTitle": "Lightning address",
455489
"security": "Security",
456490
"settings": "Options",
457491
"privacy": "Privacy",

assets/translations/es.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,40 @@
439439
"prepairZapData": "Preparando los datos de la transacción...",
440440
"lastUpdated": "Última actualización",
441441
"mintInfoUpdated": "¡Información de la ceca actualizada!",
442-
"mintInfoUpdateFailed": "Error al actualizar la información de la ceca"
442+
"mintInfoUpdateFailed": "Error al actualizar la información de la ceca",
443+
"npcSettings": "Lightning address",
444+
"npcDefaultAccount": "Default",
445+
"npcTapToCopy": "Tap to copy",
446+
"npcUsernameLabel": "Custom username",
447+
"npcUsernamePlaceholder": "optional username",
448+
"npcPurchaseUsername": "Save username",
449+
"npcSetUsername": "Set Username",
450+
"npcRequestUsername": "Request username",
451+
"npcUsernameFeePrompt": "Do you want to set this username for a fee of {{amount}} sats?",
452+
"npcReceiveTitle": "NPC Lightning addresses",
453+
"npcReceiveHint": "Receive Lightning payments into your local Cashu wallet.",
454+
"npcAccountsLabel": "Accounts",
455+
"npcLocalBalance": "Local balance",
456+
"npcReceiveAddress": "Receive address",
457+
"npcSeedKey": "Seed key",
458+
"npcImportedKey": "Imported key",
459+
"npcActive": "Active",
460+
"npcSyncing": "Syncing",
461+
"npcPaused": "Paused",
462+
"npcNpubFallback": "Using your npub until a username is saved",
463+
"npcSyncAll": "Sync all",
464+
"npcSynced": "NPC account synced",
465+
"npcAccountAdded": "NPC account added",
466+
"npcAccountRemoved": "NPC account removed",
467+
"npcUsernameSaved": "Username saved",
468+
"npcAddAccountTitle": "Add NPC account",
469+
"npcAddAccountHint": "Import an existing Nostr key or derive a new key from your seed.",
470+
"npcPrivateKeyLabel": "Private key",
471+
"npcPrivateKeyPlaceholder": "nsec or hex",
472+
"npcPrivateKeyHint": "Imported keys are stored in secure storage on this device.",
473+
"npcPrivateKeyRequired": "Enter an nsec or hex private key.",
474+
"npcImportPrivateKey": "Import private key",
475+
"npcDeriveAccount": "Derive new key"
443476
},
444477
"topNav": {
445478
"about": "Sobre nosotros",
@@ -451,6 +484,7 @@
451484
"currency": "Moneda",
452485
"mintSettings": "Gestión de ceca",
453486
"nfcSettings": "Configuración NFC",
487+
"npcSettingsTitle": "Lightning address",
454488
"security": "Seguridad",
455489
"settings": "Opciones",
456490
"privacy": "Privacidad",

assets/translations/it.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,40 @@
438438
"prepairZapData": "Preparando i dati della transazione...",
439439
"lastUpdated": "Ultimo aggiornamento",
440440
"mintInfoUpdated": "Informazioni mint aggiornate!",
441-
"mintInfoUpdateFailed": "Aggiornamento informazioni mint fallito"
441+
"mintInfoUpdateFailed": "Aggiornamento informazioni mint fallito",
442+
"npcSettings": "Lightning address",
443+
"npcDefaultAccount": "Default",
444+
"npcTapToCopy": "Tap to copy",
445+
"npcUsernameLabel": "Custom username",
446+
"npcUsernamePlaceholder": "optional username",
447+
"npcPurchaseUsername": "Save username",
448+
"npcSetUsername": "Set Username",
449+
"npcRequestUsername": "Request username",
450+
"npcUsernameFeePrompt": "Do you want to set this username for a fee of {{amount}} sats?",
451+
"npcReceiveTitle": "NPC Lightning addresses",
452+
"npcReceiveHint": "Receive Lightning payments into your local Cashu wallet.",
453+
"npcAccountsLabel": "Accounts",
454+
"npcLocalBalance": "Local balance",
455+
"npcReceiveAddress": "Receive address",
456+
"npcSeedKey": "Seed key",
457+
"npcImportedKey": "Imported key",
458+
"npcActive": "Active",
459+
"npcSyncing": "Syncing",
460+
"npcPaused": "Paused",
461+
"npcNpubFallback": "Using your npub until a username is saved",
462+
"npcSyncAll": "Sync all",
463+
"npcSynced": "NPC account synced",
464+
"npcAccountAdded": "NPC account added",
465+
"npcAccountRemoved": "NPC account removed",
466+
"npcUsernameSaved": "Username saved",
467+
"npcAddAccountTitle": "Add NPC account",
468+
"npcAddAccountHint": "Import an existing Nostr key or derive a new key from your seed.",
469+
"npcPrivateKeyLabel": "Private key",
470+
"npcPrivateKeyPlaceholder": "nsec or hex",
471+
"npcPrivateKeyHint": "Imported keys are stored in secure storage on this device.",
472+
"npcPrivateKeyRequired": "Enter an nsec or hex private key.",
473+
"npcImportPrivateKey": "Import private key",
474+
"npcDeriveAccount": "Derive new key"
442475
},
443476
"topNav": {
444477
"about": "Chi siamo",
@@ -450,6 +483,7 @@
450483
"currency": "Valuta",
451484
"mintSettings": "Gestione mint",
452485
"nfcSettings": "Impostazioni NFC",
486+
"npcSettingsTitle": "Lightning address",
453487
"security": "Sicurezza",
454488
"settings": "Opzioni",
455489
"privacy": "Privacy",

assets/translations/ru.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,40 @@
438438
"prepairZapData": "Подготовка данных транзакции...",
439439
"lastUpdated": "Последнее обновление",
440440
"mintInfoUpdated": "Информация о монетном дворе обновлена!",
441-
"mintInfoUpdateFailed": "Не удалось обновить информацию о монетном дворе"
441+
"mintInfoUpdateFailed": "Не удалось обновить информацию о монетном дворе",
442+
"npcSettings": "Lightning address",
443+
"npcDefaultAccount": "Default",
444+
"npcTapToCopy": "Tap to copy",
445+
"npcUsernameLabel": "Custom username",
446+
"npcUsernamePlaceholder": "optional username",
447+
"npcPurchaseUsername": "Save username",
448+
"npcSetUsername": "Set Username",
449+
"npcRequestUsername": "Request username",
450+
"npcUsernameFeePrompt": "Do you want to set this username for a fee of {{amount}} sats?",
451+
"npcReceiveTitle": "NPC Lightning addresses",
452+
"npcReceiveHint": "Receive Lightning payments into your local Cashu wallet.",
453+
"npcAccountsLabel": "Accounts",
454+
"npcLocalBalance": "Local balance",
455+
"npcReceiveAddress": "Receive address",
456+
"npcSeedKey": "Seed key",
457+
"npcImportedKey": "Imported key",
458+
"npcActive": "Active",
459+
"npcSyncing": "Syncing",
460+
"npcPaused": "Paused",
461+
"npcNpubFallback": "Using your npub until a username is saved",
462+
"npcSyncAll": "Sync all",
463+
"npcSynced": "NPC account synced",
464+
"npcAccountAdded": "NPC account added",
465+
"npcAccountRemoved": "NPC account removed",
466+
"npcUsernameSaved": "Username saved",
467+
"npcAddAccountTitle": "Add NPC account",
468+
"npcAddAccountHint": "Import an existing Nostr key or derive a new key from your seed.",
469+
"npcPrivateKeyLabel": "Private key",
470+
"npcPrivateKeyPlaceholder": "nsec or hex",
471+
"npcPrivateKeyHint": "Imported keys are stored in secure storage on this device.",
472+
"npcPrivateKeyRequired": "Enter an nsec or hex private key.",
473+
"npcImportPrivateKey": "Import private key",
474+
"npcDeriveAccount": "Derive new key"
442475
},
443476
"topNav": {
444477
"about": "О нас",
@@ -450,6 +483,7 @@
450483
"currency": "Валюта",
451484
"mintSettings": "Управление монетным двором",
452485
"nfcSettings": "Настройки NFC",
486+
"npcSettingsTitle": "Lightning address",
453487
"security": "Безопасность",
454488
"settings": "Настройки",
455489
"privacy": "Конфиденциальность",

assets/translations/th.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,40 @@
438438
"prepairZapData": "กำลังเตรียมข้อมูลธุรกรรม...",
439439
"lastUpdated": "อัปเดตล่าสุด",
440440
"mintInfoUpdated": "ข้อมูลมิ้นต์อัปเดตแล้ว!",
441-
"mintInfoUpdateFailed": "ไม่สามารถอัปเดตข้อมูลมิ้นต์ได้"
441+
"mintInfoUpdateFailed": "ไม่สามารถอัปเดตข้อมูลมิ้นต์ได้",
442+
"npcSettings": "Lightning address",
443+
"npcDefaultAccount": "Default",
444+
"npcTapToCopy": "Tap to copy",
445+
"npcUsernameLabel": "Custom username",
446+
"npcUsernamePlaceholder": "optional username",
447+
"npcPurchaseUsername": "Save username",
448+
"npcSetUsername": "Set Username",
449+
"npcRequestUsername": "Request username",
450+
"npcUsernameFeePrompt": "Do you want to set this username for a fee of {{amount}} sats?",
451+
"npcReceiveTitle": "NPC Lightning addresses",
452+
"npcReceiveHint": "Receive Lightning payments into your local Cashu wallet.",
453+
"npcAccountsLabel": "Accounts",
454+
"npcLocalBalance": "Local balance",
455+
"npcReceiveAddress": "Receive address",
456+
"npcSeedKey": "Seed key",
457+
"npcImportedKey": "Imported key",
458+
"npcActive": "Active",
459+
"npcSyncing": "Syncing",
460+
"npcPaused": "Paused",
461+
"npcNpubFallback": "Using your npub until a username is saved",
462+
"npcSyncAll": "Sync all",
463+
"npcSynced": "NPC account synced",
464+
"npcAccountAdded": "NPC account added",
465+
"npcAccountRemoved": "NPC account removed",
466+
"npcUsernameSaved": "Username saved",
467+
"npcAddAccountTitle": "Add NPC account",
468+
"npcAddAccountHint": "Import an existing Nostr key or derive a new key from your seed.",
469+
"npcPrivateKeyLabel": "Private key",
470+
"npcPrivateKeyPlaceholder": "nsec or hex",
471+
"npcPrivateKeyHint": "Imported keys are stored in secure storage on this device.",
472+
"npcPrivateKeyRequired": "Enter an nsec or hex private key.",
473+
"npcImportPrivateKey": "Import private key",
474+
"npcDeriveAccount": "Derive new key"
442475
},
443476
"topNav": {
444477
"about": "เกี่ยวกับเรา",
@@ -450,6 +483,7 @@
450483
"currency": "สกุลเงิน",
451484
"mintSettings": "การตั้งค่าการสร้างมิ้นต์",
452485
"nfcSettings": "การตั้งค่า NFC",
486+
"npcSettingsTitle": "Lightning address",
453487
"security": "ความปลอดภัย",
454488
"settings": "ตัวเลือก",
455489
"privacy": "ความเป็นส่วนตัว",

0 commit comments

Comments
 (0)