diff options
| author | Adam Soltys <[email protected]> | 2024-11-28 08:04:46 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-28 08:04:46 -0800 |
| commit | 380da842ffdb597eebb88f217f89a9268cbfaf6a (patch) | |
| tree | 1cf3067d057a8d6c1be3bb89f96ee9deaa8ab05d /src/routes/(app)/invoice | |
| parent | c1098927eddb6c9c5beac8420e5cf48edc526731 (diff) | |
| download | coinos-ui-380da842ffdb597eebb88f217f89a9268cbfaf6a.tar.gz coinos-ui-380da842ffdb597eebb88f217f89a9268cbfaf6a.zip | |
currency locale
Diffstat (limited to 'src/routes/(app)/invoice')
| -rw-r--r-- | src/routes/(app)/invoice/[id]/+page.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/(app)/invoice/[id]/+page.svelte b/src/routes/(app)/invoice/[id]/+page.svelte index 3b7b33ef..b66e394a 100644 --- a/src/routes/(app)/invoice/[id]/+page.svelte +++ b/src/routes/(app)/invoice/[id]/+page.svelte @@ -2,7 +2,7 @@ import { untrack } from "svelte"; import { enhance } from "$app/forms"; import { send } from "$lib/socket"; - import { btc, post, copy, f, get, types, sat, s, sats } from "$lib/utils"; + import { btc, loc, post, copy, f, get, types, sat, s, sats } from "$lib/utils"; import { tick, onMount, onDestroy } from "svelte"; import { browser } from "$app/environment"; import { last, showQr, amountPrompt } from "$lib/store"; @@ -29,6 +29,7 @@ let { invoice, src } = $derived(data); let { aid, amount, rate, tip, hash, text, type } = $derived(invoice); let { username, currency } = $derived(invoice.user); + let locale = loc(user); let tipPercent = $derived(tip ? (tip / amount) * 100 : 0); @@ -119,6 +120,7 @@ {amount} {amountFiat} {currency} + {locale} {tip} {rate} showQr={$showQr} |
