fix(i18n): standardize locale formatting for Intl APIs

This commit is contained in:
CaIon
2026-07-07 13:40:06 +08:00
parent 5cbb7b0be1
commit 8f31b30598
6 changed files with 35 additions and 7 deletions
@@ -47,6 +47,7 @@ import {
TooltipProvider,
TooltipTrigger,
} from '@/components/ui/tooltip'
import { toIntlLocale } from '@/i18n/languages'
import { formatTimestampRelative, formatTimestampToDate } from '@/lib/format'
import { cn } from '@/lib/utils'
@@ -411,7 +412,7 @@ function SystemInstancesList(props: SystemInstancesTableProps) {
{formatTimestampRelative(
instance.last_seen_at,
'seconds',
i18n.language
toIntlLocale(i18n.language)
)}
</TableCell>
</TableRow>
@@ -38,6 +38,7 @@ import type {
SystemTask,
SystemTaskStatus,
} from '@/features/system-settings/types'
import { toIntlLocale } from '@/i18n/languages'
import { formatTimestampRelative, formatTimestampToDate } from '@/lib/format'
import { cn } from '@/lib/utils'
@@ -185,7 +186,7 @@ function SystemTasksTable(props: SystemTasksTableProps) {
{formatTimestampRelative(
task.updated_at,
'seconds',
i18n.language
toIntlLocale(i18n.language)
)}
</TableCell>
<TableCell