feat: replace all hardcoded en-US and $ formatting with locale-aware helpers

This commit is contained in:
Your Name
2026-02-17 23:39:31 +02:00
parent fe0b20f247
commit 519bdabe61
7 changed files with 23 additions and 53 deletions

View File

@@ -94,6 +94,7 @@ import {
import { Clock } from 'lucide-vue-next'
import { useEntriesStore } from '../stores/entries'
import { useProjectsStore } from '../stores/projects'
import { formatDateLong } from '../utils/locale'
import type { TimeEntry } from '../stores/entries'
// Register Chart.js components
@@ -117,12 +118,7 @@ const greeting = computed(() => {
// Formatted date
const formattedDate = computed(() => {
return new Date().toLocaleDateString('en-US', {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric'
})
return formatDateLong(new Date().toISOString())
})
// Empty state check