import type { AppLocale } from '~~/shared/i18n' export function formatDateTime(value: string | null, fallback = 'Not available', locale: AppLocale = 'en') { if (!value) { return fallback } return new Intl.DateTimeFormat(locale === 'zh' ? 'zh-MY' : 'en-MY', { dateStyle: 'medium', timeStyle: 'short' }).format(new Date(value)) }