fix(i18n): date formatting in PurchasesView

This commit is contained in:
Gwendal Beaumont committed 2026-03-29 12:03:43 +02:00
1 parent 34c6e413d5
commit 935cf34c1e
1 file changed
+2 -2
@@ -1,5 +1,5 @@
<script lang="ts">
import { t } from '$lib/i18n';
import { t, locale } from '$lib/i18n';
import {
Search, X, Download, Check, Loader2, Music, Disc3, ShoppingBag,
ChevronDown, LayoutGrid, List
@@ -149,7 +149,7 @@
function formatPurchaseDate(ts?: number): string {
if (!ts) return '';
try {
return new Date(ts * 1000).toLocaleDateString(undefined, {
return new Date(ts * 1000).toLocaleDateString($locale ? $locale : 'en-us', {
year: 'numeric',
month: 'short',
day: 'numeric',