Set dayjs locale

This commit is contained in:
Elia Bieri 2023-05-25 14:24:39 +02:00 committed by Daniel Egger
parent 8ca22a0b2d
commit 498e9ab232
1 changed files with 5 additions and 1 deletions

View File

@ -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 }) => {