fix(i18n): date formatting in PurchaseAlbumDetailView

This commit is contained in:
Gwendal Beaumont committed 2026-03-29 12:03:26 +02:00
1 parent 0f0dfda1dd
commit 34c6e413d5
1 file changed
+2 -2
@@ -1,6 +1,6 @@
<script lang="ts">
import { onMount } from 'svelte';
import { t } from '$lib/i18n';
import { t, locale } from '$lib/i18n';
import { invoke } from '@tauri-apps/api/core';
import { ArrowLeft, Download, Check, Loader2, AlertTriangle, Library, Play, X } from 'lucide-svelte';
import QualityBadge from '../QualityBadge.svelte';
@@ -73,7 +73,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: 'long',
day: 'numeric',