diff --git a/packages/client/src/components/global/MkTime.vue b/packages/client/src/components/global/MkTime.vue index 5d9295433f..72a51f10d6 100644 --- a/packages/client/src/components/global/MkTime.vue +++ b/packages/client/src/components/global/MkTime.vue @@ -1,21 +1,23 @@ diff --git a/packages/client/src/scripts/intl-const.ts b/packages/client/src/scripts/intl-const.ts new file mode 100644 index 0000000000..ac73723717 --- /dev/null +++ b/packages/client/src/scripts/intl-const.ts @@ -0,0 +1,12 @@ +import { lang } from "@/config"; + +export const versatileLang = (lang ?? "ja-JP").replace("ja-KS", "ja-JP"); +export const dateTimeFormat = new Intl.DateTimeFormat(versatileLang, { + year: "numeric", + month: "numeric", + day: "numeric", + hour: "numeric", + minute: "numeric", + second: "numeric", +}); +export const numberFormat = new Intl.NumberFormat(versatileLang);