import * as log from "loglevel"; import { createPinia } from "pinia"; import { createApp, markRaw } from "vue"; // import {setupI18n} from './i18n' import App from "./App.vue"; import router from "./router"; import type { Router } from "vue-router"; import "../tailwind.css"; if (window.location.href.indexOf("localhost") >= 0) { log.setLevel("trace"); } else { log.setLevel("warn"); } // const i18n = setupI18n() const app = createApp(App); // todo: define lang setup // await loadLocaleMessages(i18n, 'de') app.use(router); declare module "pinia" { export interface PiniaCustomProperties { router: Router; } } const pinia = createPinia(); pinia.use(({ store }) => { store.router = markRaw(router); }); app.use(pinia); // app.use(i18n) app.mount("#app");