diff options
Diffstat (limited to 'src-vue/src/main.ts')
-rw-r--r-- | src-vue/src/main.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src-vue/src/main.ts b/src-vue/src/main.ts index 57d41865..94a0196b 100644 --- a/src-vue/src/main.ts +++ b/src-vue/src/main.ts @@ -1,4 +1,5 @@ import { createApp } from 'vue' +import { createI18n } from "vue-i18n"; import App from './App.vue' import ElementPlus from "element-plus"; import * as ElementPlusIconsVue from '@element-plus/icons-vue' @@ -10,10 +11,22 @@ import SettingsView from "./views/SettingsView.vue"; import DeveloperView from "./views/DeveloperView.vue"; import RepairView from "./views/RepairView.vue"; import {createRouter, createWebHashHistory} from "vue-router"; +import en from "./i18n/lang/en.json"; +import fr from "./i18n/lang/fr.json"; +import de from "./i18n/lang/de.json"; const app = createApp(App); +// internationalization +export const i18n = createI18n({ + locale: 'en', + fallbackLocale: 'en', + messages: { + en, fr, de + } +}); +app.use(i18n); // styles import 'element-plus/theme-chalk/index.css'; |