Set dayjs locale
This commit is contained in:
parent
8ca22a0b2d
commit
498e9ab232
|
|
@ -1,4 +1,6 @@
|
||||||
import * as Sentry from "@sentry/vue";
|
import * as Sentry from "@sentry/vue";
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
import "dayjs/locale/de";
|
||||||
import * as log from "loglevel";
|
import * as log from "loglevel";
|
||||||
import { createPinia } from "pinia";
|
import { createPinia } from "pinia";
|
||||||
import { createApp, markRaw } from "vue";
|
import { createApp, markRaw } from "vue";
|
||||||
|
|
@ -37,8 +39,10 @@ Sentry.init({
|
||||||
});
|
});
|
||||||
|
|
||||||
// todo: define lang setup
|
// todo: define lang setup
|
||||||
loadLocaleMessages("de").then(() => {
|
const locale = "de";
|
||||||
|
loadLocaleMessages(locale).then(() => {
|
||||||
app.use(router);
|
app.use(router);
|
||||||
|
dayjs.locale(locale);
|
||||||
|
|
||||||
const pinia = createPinia();
|
const pinia = createPinia();
|
||||||
pinia.use(({ store }) => {
|
pinia.use(({ store }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue