diff options
| author | Adam Soltys <[email protected]> | 2025-05-03 08:43:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-05-03 08:43:35 -0700 |
| commit | 5d4c882cc48bbee005ba65f082ad7bd771070b3d (patch) | |
| tree | 54822d1f2cbc4c3672ab67b2eb2585e6af88e6cb /src/components | |
| parent | 9d66feae5483141be0689d834b6d45906d6be84a (diff) | |
| download | coinos-ui-5d4c882cc48bbee005ba65f082ad7bd771070b3d.tar.gz coinos-ui-5d4c882cc48bbee005ba65f082ad7bd771070b3d.zip | |
settings re-org
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Payments.svelte | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/Payments.svelte b/src/components/Payments.svelte index 814a5b4e..36633089 100644 --- a/src/components/Payments.svelte +++ b/src/components/Payments.svelte @@ -6,6 +6,7 @@ import { t } from "$lib/translations"; import locales from "$lib/locales"; const { fund, locale, user, payments } = $props(); + const language = $derived(user?.language || "en"); </script> <div class="text-base"> @@ -106,7 +107,11 @@ {#if p.type === types.ecash} {amount > 0 ? $t("payments.redeemed") : $t("payments.minted")} {:else} - {amount > 0 ? (p.confirmed ? $t("payments.received") : $t("payments.pending")) : $t("payments.sent")} + {amount > 0 + ? p.confirmed + ? $t("payments.received") + : $t("payments.pending") + : $t("payments.sent")} {/if} </div> </div> @@ -116,12 +121,12 @@ <div class="text-secondary text-right text-sm my-auto col-span-3"> <div> {format(new Date(p.created), "h:mm aaa", { - locale: locales[user.language], + locale: locales[language], })} </div> <div> {format(new Date(p.created), "MMM d, yy", { - locale: locales[user.language], + locale: locales[language], })} </div> </div> |
