✨ 🌐 Add Localization feature
This commit is contained in:
10
src/main.js
10
src/main.js
@ -2,10 +2,20 @@ import { createApp } from "vue";
|
||||
import App from "./App.vue";
|
||||
import router from "./router";
|
||||
import { registerSW } from "virtual:pwa-register";
|
||||
import { createI18n } from "vue-i18n";
|
||||
import { strings } from "./strings";
|
||||
import { language } from "./store";
|
||||
|
||||
const i18n = createI18n({
|
||||
locale: language.value,
|
||||
fallbackLocale: "en",
|
||||
messages: strings,
|
||||
});
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(router);
|
||||
app.use(i18n);
|
||||
|
||||
app.mount("#app");
|
||||
|
||||
|
Reference in New Issue
Block a user