mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2026-08-05 21:32:23 +00:00
Add locale handling
This commit is contained in:
+9
-1
@@ -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")
|
||||
Reference in New Issue
Block a user