fix(i18n): standardize locale formatting for Intl APIs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user