aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-12 22:39:47 -0800
committerAdam Soltys <[email protected]>2024-12-12 22:39:47 -0800
commita4aba929eee1f7cad95d1c58eb322175b5e6cfbc (patch)
tree64c640dec49e063659506cb45957cb62b26c87a8 /src/routes/(app)/send
parent0916c812a85be30c9ce3935475f435a67857a06b (diff)
downloadcoinos-ui-a4aba929eee1f7cad95d1c58eb322175b5e6cfbc.tar.gz
coinos-ui-a4aba929eee1f7cad95d1c58eb322175b5e6cfbc.zip
pass locale around
Diffstat (limited to 'src/routes/(app)/send')
-rw-r--r--src/routes/(app)/send/invoice/[id]/+page.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte
index d3603d64..5a446dbb 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/send/invoice/[id]/+page.svelte
@@ -12,12 +12,13 @@
import Numpad from "$comp/Numpad.svelte";
import Spinner from "$comp/Spinner.svelte";
import { page } from "$app/stores";
- import { btc, sat, post, back, f, toFiat, s, sats, focus } from "$lib/utils";
+ import { btc, sat, post, back, f, toFiat, s, sats, focus, loc } from "$lib/utils";
let { data, form } = $props();
let { invoice, user } = $state(data);
let { address, hash, payreq, user: recipient, tip } = $state(invoice);
- let { currency } = $state(user);
+ let { currency } = $derived(user);
+ let locale = $derived(loc(user));
let { amount } = $state(form || invoice);
let rate = $derived(invoice.rate * (data.rate / data.invoiceRate));
@@ -89,7 +90,7 @@
{$t("payments.send")}
</h1>
- <Amount {amount} {tip} {rate} {currency} />
+ <Amount {amount} {tip} {rate} {currency} {locale} />
<h1 class="text-xl text-secondary">
{$t("payments.to")}