From 498e9ab2324b389e930effaf8d3721c906f0d6f0 Mon Sep 17 00:00:00 2001 From: Elia Bieri Date: Thu, 25 May 2023 14:24:39 +0200 Subject: [PATCH] Set dayjs locale --- client/src/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/main.ts b/client/src/main.ts index df15ebee..621bc22d 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -1,4 +1,6 @@ import * as Sentry from "@sentry/vue"; +import dayjs from "dayjs"; +import "dayjs/locale/de"; import * as log from "loglevel"; import { createPinia } from "pinia"; import { createApp, markRaw } from "vue"; @@ -37,8 +39,10 @@ Sentry.init({ }); // todo: define lang setup -loadLocaleMessages("de").then(() => { +const locale = "de"; +loadLocaleMessages(locale).then(() => { app.use(router); + dayjs.locale(locale); const pinia = createPinia(); pinia.use(({ store }) => {