Add locale handling

This commit is contained in:
2023-01-15 21:24:40 +01:00
parent efbd8bc344
commit d2f60a3cba
8 changed files with 202 additions and 5 deletions
+9 -1
View File
@@ -2,7 +2,15 @@ import { createApp } from "vue"
import App from "./App.vue"
import router from "./router"
import "./assets/main.css"
import { createI18n } from "vue-i18n";
import { getLocale } from "./utilities/locale_handler";
const app = createApp(App)
app.use(router)
app.mount("#app")
app.use(createI18n({
legacy: false,
locale: getLocale(),
fallbackLocale: "it",
messages: { "en": {}, "it": {} },
}));
app.mount("#app")