From 380da842ffdb597eebb88f217f89a9268cbfaf6a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 28 Nov 2024 08:04:46 -0800 Subject: currency locale --- .../(app)/[username]/(profile)/+layout.svelte | 1 - src/routes/(app)/[username]/receive/+page.svelte | 21 ++++++++++-- src/routes/(app)/invoice/[id]/+page.svelte | 4 ++- .../(app)/payments/[...page]/+page.server.ts | 23 ++++++++----- src/routes/(app)/payments/[...page]/+page.svelte | 40 ++++++++++++---------- src/routes/(app)/reset/[code]/+page.svelte | 37 +++----------------- .../(app)/send/lightning/[payreq]/+page.svelte | 3 +- 7 files changed, 66 insertions(+), 63 deletions(-) (limited to 'src/routes') diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index f6a9edae..55ea9f2d 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -288,7 +288,6 @@ > {s((1 * sats) / rates[currency])} = {f(1, currency)} - {currency} diff --git a/src/routes/(app)/[username]/receive/+page.svelte b/src/routes/(app)/[username]/receive/+page.svelte index 89f3a1f3..e8092c11 100644 --- a/src/routes/(app)/[username]/receive/+page.svelte +++ b/src/routes/(app)/[username]/receive/+page.svelte @@ -1,6 +1,17 @@
@@ -218,7 +222,7 @@
- {f(Math.abs(p.amount) * (p.rate / sats), p.currency)} + {f(Math.abs(p.amount) * (p.rate / sats), p.currency, loc(user))} {#if p.tip} @@ -322,15 +326,15 @@ >{$t("payments.income")} - {tipsIn ? f(tipsIn, c) : "-"} - {totalIn ? f(totalIn, c) : "-"} + {tipsIn ? f(tipsIn, c, loc(user)) : "-"} + {totalIn ? f(totalIn, c, loc(user)) : "-"} {$t("payments.expenditure")} - {tipsOut ? f(tipsOut, c) : "-"} - {totalOut ? f(totalOut, c) : "-"} + {tipsOut ? f(tipsOut, c, loc(user)) : "-"} + {totalOut ? f(totalOut, c, loc(user)) : "-"} {/each}
diff --git a/src/routes/(app)/reset/[code]/+page.svelte b/src/routes/(app)/reset/[code]/+page.svelte index 144c73a9..df9d1144 100644 --- a/src/routes/(app)/reset/[code]/+page.svelte +++ b/src/routes/(app)/reset/[code]/+page.svelte @@ -1,5 +1,6 @@
@@ -31,37 +31,10 @@ {/if}
-
- - {#if revealPassword} - - {:else} - - {/if} - -
+
A new seed phrase will be generated for your account. You'll need to diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte index 2d981326..a4474fe0 100644 --- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte +++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte @@ -1,4 +1,5 @@
-- cgit v1.2.3