feat: replace all hardcoded en-US and $ formatting with locale-aware helpers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user