aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/locales/ar.json7
-rw-r--r--src/locales/bn.json7
-rw-r--r--src/locales/de.json7
-rw-r--r--src/locales/el.json7
-rw-r--r--src/locales/en.json9
-rw-r--r--src/locales/es.json7
-rw-r--r--src/locales/fa.json7
-rw-r--r--src/locales/fr.json7
-rw-r--r--src/locales/hi.json7
-rw-r--r--src/locales/it.json7
-rw-r--r--src/locales/ja.json7
-rw-r--r--src/locales/ko.json7
-rw-r--r--src/locales/nl.json7
-rw-r--r--src/locales/pl.json7
-rw-r--r--src/locales/pt.json7
-rw-r--r--src/locales/ru.json7
-rw-r--r--src/locales/th.json7
-rw-r--r--src/locales/tr.json7
-rw-r--r--src/locales/zh.json7
-rw-r--r--src/routes/(app)/settings/nostr/+page.svelte138
20 files changed, 180 insertions, 93 deletions
diff --git a/src/locales/ar.json b/src/locales/ar.json
index a8cac586..e776ada0 100644
--- a/src/locales/ar.json
+++ b/src/locales/ar.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "تقاضي رسوم إلى كمية ثابتة من الجلسات إن لم يتم تحديدها، سنحصل على 1% من مبلغ الدفع.",
"notifications": "الإخطارات",
"on": "على",
- "off": "قبالة"
+ "off": "قبالة",
+ "qr": "QR",
+ "edit": "Edit",
+ "payments": "المدفوعات",
+ "connect": "Connect",
+ "copyNwc": "نسخة NWC"
},
"404": {
"404": "404",
diff --git a/src/locales/bn.json b/src/locales/bn.json
index b1c8c82a..17c367c1 100644
--- a/src/locales/bn.json
+++ b/src/locales/bn.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "একটা নির্দিষ্ট পরিমাণে স্যাটান্টের ফি। যদি না নির্ধারণ করা হয়, আমরা টাকা ১% করে দেই।.",
"notifications": "সূচনাবার্তা",
"on": "চালু করুন",
- "off": "বন্ধ"
+ "off": "বন্ধ",
+ "qr": "তারিখ",
+ "edit": "সম্পাদনা",
+ "payments": "প্রদান",
+ "connect": "সংযোগ স্থাপন করুন",
+ "copyNwc": "% 1 কপি করুন"
},
"404": {
"404": "৪০৪",
diff --git a/src/locales/de.json b/src/locales/de.json
index 2910b993..8703dd19 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -522,7 +522,12 @@
"maxfeeDesc": "Caps Routing-Gebühren zu einem festen Betrag von Sats. Wenn nicht gesetzt, werden wir 1% des Zahlungsbetrages übersteigen.",
"notifications": "Mitteilungen",
"on": "Auf",
- "off": "Aus"
+ "off": "Aus",
+ "qr": "QR",
+ "edit": "Bearbeiten",
+ "payments": "Zahlungen",
+ "connect": "Verbinden",
+ "copyNwc": "NWC kopieren"
},
"notes": {
"contents": "Inhalt",
diff --git a/src/locales/el.json b/src/locales/el.json
index 9773e3fa..05414cb4 100644
--- a/src/locales/el.json
+++ b/src/locales/el.json
@@ -513,7 +513,12 @@
"maxfeeDesc": "Τα καψούλια δρομολογούν τέλη σε ένα σταθερό ποσό των κορμών. Εάν δεν ορίσουμε, ανεβάζουμε στο 1% του ποσού της πληρωμής.",
"notifications": "Κοινοποιήσεις",
"on": "Εμπρός",
- "off": "Κλείσιμο"
+ "off": "Κλείσιμο",
+ "qr": "QR",
+ "edit": "Επεξεργασία",
+ "payments": "Πληρωμές",
+ "connect": "Σύνδεση",
+ "copyNwc": "Αντιγραφή NWC"
},
"notes": {
"contents": "Περιεχόμενα σημείωσης",
diff --git a/src/locales/en.json b/src/locales/en.json
index 237e5023..0146cf58 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -4,6 +4,9 @@
"notFound": "No notes found"
},
"accounts": {
+ "qr": "QR",
+ "edit": "Edit",
+ "payments": "Payments",
"notifications": "Notifications",
"on": "On",
"off": "Off",
@@ -21,10 +24,11 @@
"yearly": "Yearly",
"never": "Never",
"newConection": "New connection",
+ "connect": "Connect",
"name": "Name",
"pubkey": "Pubkey",
"secret": "Secret",
- "connection": "Connection",
+ "connection": "NWC Connection",
"budget": "Budget",
"delete": "Delete",
"renewal": "Renewal period",
@@ -36,6 +40,7 @@
"seedPhrase": "Seed phrase",
"save": "Save",
"copy": "Copy",
+ "copyNwc": "Copy NWC",
"revealMnemonic": "Reveal seed phrase",
"regenerate": "Regenerate",
"deleteAccount": "Delete account",
@@ -309,7 +314,7 @@
"seedPhrase": "Seed phrase",
"nostrKeys": "Nostr secret key",
"nostrDescription": "Your nostr secret key is used to sign and decrypt messages, keep it safe or someone may be able to impersonate you.",
- "nwc": "Nostr wallet connect",
+ "nwc": "Nostr wallet connect (NWC)",
"nwcDescription": "Enable nostr apps to send payments from your account",
"seedDescription": "This 12 word seed phrase is used to derive your nostr private key and your self-custodial wallet keys which determine your auto-withdrawal addresses. Back it up and don't let anyone see it.",
"emailDescription": "For password resets and payment notifications only",
diff --git a/src/locales/es.json b/src/locales/es.json
index fce08082..249491ab 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -495,7 +495,12 @@
"maxfeeDesc": "Cápsulas de pago a una cantidad fija de sats. Si no se establece, caemos al 1% de la cantidad de pago.",
"notifications": "Notificaciones",
"on": "On",
- "off": "Fuera"
+ "off": "Fuera",
+ "qr": "QR",
+ "edit": "Editar",
+ "payments": "Pagos",
+ "connect": "Conectar",
+ "copyNwc": "Copiado NWC"
},
"notes": {
"contents": "Contenido de la nota",
diff --git a/src/locales/fa.json b/src/locales/fa.json
index fb8ed950..5cf31d61 100644
--- a/src/locales/fa.json
+++ b/src/locales/fa.json
@@ -495,7 +495,12 @@
"maxfeeDesc": "هزینه های مسیریابی Caps به مقدار ثابت نشستن. اگر نه، ما 1 درصد از مبلغ پرداخت را به دست می آوریم.",
"notifications": "اعلان ها",
"on": "On",
- "off": "Off"
+ "off": "Off",
+ "qr": "QR",
+ "edit": "ویرایش Edit",
+ "payments": "پرداخت",
+ "connect": "اتصال Connect",
+ "copyNwc": "کپی برداری NWC"
},
"notes": {
"contents": "مطالب توجه",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index 37eaad0d..494c78e5 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -495,7 +495,12 @@
"maxfeeDesc": "Limite les frais de routage à un montant fixe de sats. Si ce n'est pas fixé, nous plafonnons à 1 % du montant du paiement.",
"notifications": "Notifications",
"on": "À",
- "off": "Arrêt"
+ "off": "Arrêt",
+ "qr": "QR",
+ "edit": "Modifier",
+ "payments": "Paiements",
+ "connect": "Connexion",
+ "copyNwc": "Copier NWC"
},
"notes": {
"contents": "Table des matières",
diff --git a/src/locales/hi.json b/src/locales/hi.json
index ee680233..33753f4c 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "एक निश्चित राशि के लिए कैप्स रूटिंग शुल्क। यदि निर्धारित नहीं है, तो हम भुगतान राशि के 1% पर बैठते हैं।.",
"notifications": "अधिसूचनाएं",
"on": "पर",
- "off": "बंद"
+ "off": "बंद",
+ "qr": "क्यूआर",
+ "edit": "संपादित करें",
+ "payments": "भुगतान",
+ "connect": "कनेक्ट",
+ "copyNwc": "NWC"
},
"404": {
"404": "404",
diff --git a/src/locales/it.json b/src/locales/it.json
index 318c038a..45bfbf2a 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "Caps routing tasse a una quantità fissa di sati. Se non impostato, copriamo all'1% dell'importo del pagamento.",
"notifications": "Notifica",
"on": "Su",
- "off": "Fuori"
+ "off": "Fuori",
+ "qr": "DESIGNO DEL QR",
+ "edit": "Modifica",
+ "payments": "Pagamenti",
+ "connect": "Collegamento",
+ "copyNwc": "Copiare NWC"
},
"404": {
"404": " Errore: 404",
diff --git a/src/locales/ja.json b/src/locales/ja.json
index a68dd32b..62a9f4a7 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -495,7 +495,12 @@
"maxfeeDesc": "シートの固定量へのキャップルーティング手数料。 設定されていない場合、お支払い金額の1%を上限とします.",
"notifications": "お知らせ",
"on": "お問い合わせ",
- "off": "オフ"
+ "off": "オフ",
+ "qr": "QRコード",
+ "edit": "編集",
+ "payments": "お支払い",
+ "connect": "ログイン",
+ "copyNwc": "コピー NWC"
},
"notes": {
"contents": "コンテンツ",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index a5850e5a..a77b8631 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "캡 라우팅 수수료 고정 금액. 놓치지 않는 경우에, 우리는 지불 총계의 1%에 모자를 씌웁니다.",
"notifications": "공지사항",
"on": "으로",
- "off": "내 계정"
+ "off": "내 계정",
+ "qr": "QR 코드",
+ "edit": "제품정보",
+ "payments": "제품정보",
+ "connect": "연결하기",
+ "copyNwc": "복사 NWC"
},
"404": {
"404": "404명",
diff --git a/src/locales/nl.json b/src/locales/nl.json
index 8211e516..08f0b51a 100644
--- a/src/locales/nl.json
+++ b/src/locales/nl.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "Caps routing kosten naar een vast bedrag van sats. Indien niet ingesteld, beperken we ons tot 1% van het betalingsbedrag.",
"notifications": "Kennisgevingen",
"on": "Aan",
- "off": "Uit"
+ "off": "Uit",
+ "qr": "QR",
+ "edit": "Bewerken",
+ "payments": "Betalingen",
+ "connect": "Verbinden",
+ "copyNwc": "NWC kopiëren"
},
"404": {
"404": "404",
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 0ff3c3b7..cb117725 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "Kapsułki opłat routingu do stałej ilości sat. Jeśli nie jest ustawiony, ograniczamy do 1% kwoty płatności.",
"notifications": "Powiadomienia",
"on": "On",
- "off": "Wyłącz"
+ "off": "Wyłącz",
+ "qr": "QR",
+ "edit": "Edycja",
+ "payments": "Płatności",
+ "connect": "Połącz",
+ "copyNwc": "Kopiuj NWC"
},
"404": {
"404": "404",
diff --git a/src/locales/pt.json b/src/locales/pt.json
index 43e6c0df..4d5a944c 100644
--- a/src/locales/pt.json
+++ b/src/locales/pt.json
@@ -517,7 +517,12 @@
"maxfeeDesc": "Caps taxas de roteamento para uma quantidade fixa de sats. Se não estiver definido, nós captamos 1% do valor do pagamento.",
"notifications": "Notificações",
"on": "Em",
- "off": "Fora"
+ "off": "Fora",
+ "qr": "QR",
+ "edit": "Editar",
+ "payments": "Pagamentos",
+ "connect": "Conecte-se",
+ "copyNwc": "Copiar NWC"
},
"notes": {
"contents": "Conteúdo de nota",
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 15c9012f..04c5d642 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -495,7 +495,12 @@
"maxfeeDesc": "Комиссионные за маршрутизацию к фиксированной сумме сат. Если не установлен, мы ограничиваем 1% от суммы платежа.",
"notifications": "Уведомления",
"on": "На",
- "off": "Оставить"
+ "off": "Оставить",
+ "qr": "QR",
+ "edit": "Редактировать",
+ "payments": "Платежи",
+ "connect": "Подключить",
+ "copyNwc": "Копия NWC"
},
"notes": {
"contents": "Содержание заметок",
diff --git a/src/locales/th.json b/src/locales/th.json
index 47442664..edeb07da 100644
--- a/src/locales/th.json
+++ b/src/locales/th.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "ค่าธรรมเนียมค่าปรับ ค่าที่นั่งคงที่ ถ้าไม่ได้ตั้งค่าเราติดที่ 1% ของจํานวนเงินที่จ่าย.",
"notifications": "การแจ้งให้ทราบComment",
"on": "บน",
- "off": "ปิด"
+ "off": "ปิด",
+ "qr": "QR",
+ "edit": "แก้ไข",
+ "payments": "ค่าใช้จ่าย",
+ "connect": "เชื่อมต่อ",
+ "copyNwc": "คัดลอก NWC"
},
"404": {
"404": "404",
diff --git a/src/locales/tr.json b/src/locales/tr.json
index f633c5eb..1fe730a7 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -47,7 +47,12 @@
"maxfeeDesc": "Caps, sabit bir miktarda oturma ücretine gider. Eğer ayarlanmamışsa, ödeme miktarının% 1'inde kapıyoruz.",
"notifications": "Bildirimler",
"on": "Onda",
- "off": "Off"
+ "off": "Off",
+ "qr": "QR",
+ "edit": "Edit",
+ "payments": "Ödemeler",
+ "connect": "Connect",
+ "copyNwc": "Kopya NWC"
},
"404": {
"404": "404",
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 782f5bcb..b35284c3 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -495,7 +495,12 @@
"maxfeeDesc": "盖子路由费为固定的座标. 如果不设定, 我们上限为支付金额的1% .",
"notifications": "通知",
"on": "打开",
- "off": "关闭"
+ "off": "关闭",
+ "qr": "质询",
+ "edit": "编辑",
+ "payments": "付款",
+ "connect": "连接",
+ "copyNwc": "复制 NWC"
},
"notes": {
"contents": "说明内容",
diff --git a/src/routes/(app)/settings/nostr/+page.svelte b/src/routes/(app)/settings/nostr/+page.svelte
index 195f1a98..b000cc13 100644
--- a/src/routes/(app)/settings/nostr/+page.svelte
+++ b/src/routes/(app)/settings/nostr/+page.svelte
@@ -41,20 +41,12 @@
await tick();
$save.click();
};
-
- let units = (r) =>
- ({
- daily: $t("accounts.day"),
- weekly: $t("accounts.week"),
- monthly: $t("accounts.month"),
- yearly: $t("accounts.year"),
- })[r];
</script>
<input type="hidden" name="challenge" value={challenge} />
<input type="hidden" name="extension" value={extension} />
-<div class="p-4">
+<div>
<h2 class="text-2xl font-bold mb-2">
{$t("user.settings.nwc")}
</h2>
@@ -65,83 +57,83 @@
<div class="space-y-2">
{#each apps as app, i}
{@const last = i === apps.length - 1}
- <div class="p-4" class:border-b-8={!last}>
- <div class="flex justify-center gap-2 items-center p-4">
- <div class="grow text-xl break-words min-w-0">{app.name}</div>
- {#if app.max_amount > 0}
- <div class="flex text-xl gap-1">
- <div class="flex items-center font-bold">
- <iconify-icon
- noobserver
- icon="ph:lightning-fill"
- class="text-yellow-300"
- ></iconify-icon>
- {s(app.spent, locale)} /
- {s(app.max_amount, locale)}
+ <div class:border-b-8={!last}>
+ <div class="flex justify-center gap-2 p-4">
+ <div class="grow text-xl break-words min-w-0">
+ <div>{app.name}</div>
+ {#if app.max_amount > 0}
+ <div class="flex gap-1 text-base">
+ <div class="flex items-center">
+ <iconify-icon
+ noobserver
+ icon="ph:lightning-fill"
+ class="text-yellow-300"
+ ></iconify-icon>
+ {s(app.spent, locale)} /
+ {s(app.max_amount, locale)}
+ </div>
+
+ {#if app.budget_renewal !== "never"}
+ <div>
+ {app.budget_renewal}
+ </div>
+ {/if}
</div>
+ {/if}
+ </div>
- {#if app.budget_renewal !== "never"}
- <div>
- {app.budget_renewal}
- </div>
- {/if}
- </div>
- {/if}
+ <a
+ href={`/apps/${app.pubkey}`}
+ aria-label={$t("accounts.edit")}
+ title={$t("accounts.edit")}
+ >
+ <iconify-icon icon="ph:gear-bold" width="32"></iconify-icon>
+ </a>
+
+ <a
+ href={`/apps/${app.pubkey}/payments`}
+ aria-label={$t("accounts.payments")}
+ class:btn-disabled={!app.secret}
+ title={$t("accounts.payments")}
+ >
+ <iconify-icon icon="ph:clock-bold" width="32"></iconify-icon>
+ </a>
+
+ <a
+ aria-label="QR"
+ href={`/qr/${encodeURIComponent(app.nwc)}`}
+ class:btn-disabled={!app.secret}
+ title={$t("user.receive.showQR")}
+ disabled={!app.secret}
+ >
+ <iconify-icon icon="ph:qr-code-bold" width="32"></iconify-icon>
+ </a>
</div>
+ <div class="flex gap-1 w-full"></div>
+
<div class="flex flex-wrap justify-center gap-1">
+ <button
+ aria-label="Copy"
+ type="button"
+ onclick={() => copy(app.nwc)}
+ class="btn !w-auto grow"
+ class:btn-disabled={!app.secret}
+ title={$t("accounts.copy")}
+ >
+ <iconify-icon icon="ph:copy-bold" width="32"></iconify-icon>
+ <div>{$t("accounts.copyNwc")}</div>
+ </button>
<a
href={app.nwc}
- class="btn bg-gradient-to-tr from-purple-500 to-pink-500 !w-auto shrink text-white grow whitespace-nowrap"
+ class="btn bg-gradient-to-tr from-purple-500 to-pink-500 !w-auto text-white grow whitespace-nowrap"
class:btn-disabled={!app.secret}
aria-label="Open nostr"
>
<iconify-icon icon="ph:arrow-square-out-bold" width="32"
></iconify-icon>
- <div>Connect</div>
+ <div>{$t("accounts.connect")}</div>
</a>
-
- <div class="flex gap-1 w-full">
- <a
- href={`/apps/${app.pubkey}`}
- class="btn !w-auto grow"
- aria-label="Edit"
- >
- <iconify-icon icon="ph:pencil-bold" width="32"></iconify-icon>
- </a>
-
- <a
- href={`/apps/${app.pubkey}/payments`}
- aria-label="Payments"
- class="btn !w-auto grow"
- class:btn-disabled={!app.secret}
- title={$t("accounts.copy")}
- >
- <iconify-icon icon="ph:clock-bold" width="32"></iconify-icon>
- </a>
-
- <button
- aria-label="Copy"
- type="button"
- onclick={() => copy(app.nwc)}
- class="btn !w-auto grow"
- class:btn-disabled={!app.secret}
- title={$t("accounts.copy")}
- >
- <iconify-icon icon="ph:copy-bold" width="32"></iconify-icon>
- </button>
-
- <a
- aria-label="QR"
- href={`/qr/${encodeURIComponent(app.nwc)}`}
- class="btn !w-auto grow"
- class:btn-disabled={!app.secret}
- title={$t("user.receive.showQR")}
- disabled={!app.secret}
- >
- <iconify-icon icon="ph:qr-code-bold" width="32"></iconify-icon>
- </a>
- </div>
</div>
</div>
{/each}