From 38e786c0d3c2280dd69f22ddf7cdf6ca804e6048 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 30 Dec 2024 21:53:52 -0800 Subject: scrap key generation --- src/components/Payments.svelte | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'src/components') diff --git a/src/components/Payments.svelte b/src/components/Payments.svelte index fbe88ce6..a4331a42 100644 --- a/src/components/Payments.svelte +++ b/src/components/Payments.svelte @@ -4,7 +4,7 @@ import { get, f, s, si, sat, loc, sats, types } from "$lib/utils"; import { format } from "date-fns"; import { t } from "$lib/translations"; - + import locales from "$lib/locales"; const { fund, locale, payments } = $props(); @@ -20,7 +20,8 @@
-
- @@ -77,14 +79,16 @@ {:else}
{#if p.type === types.lightning || p.type === types.bolt12} - {:else if p.type === types.ecash} {:else if p.type === types.reconcile} - + {:else if p.type === types.bitcoin} @@ -107,10 +111,14 @@
- {format(new Date(p.created), "h:mm aaa", { locale })} + {format(new Date(p.created), "h:mm aaa", { + locale: locales[user.language], + })}
- {format(new Date(p.created), "MMM d, yy", { locale })} + {format(new Date(p.created), "MMM d, yy", { + locale: locales[user.language], + })}
-- cgit v1.2.3