chore: added i18n

This commit is contained in:
2025-07-01 16:15:50 +02:00
parent c5221e337b
commit 519665697b
6 changed files with 46 additions and 23 deletions
+19
View File
@@ -0,0 +1,19 @@
import enLang from './locales/en.json';
import plLang from './locales/pl.json';
import { createI18n } from 'vue-i18n';
const i18n = createI18n({
locale: 'pl',
legacy: false,
warnHtmlMessage: false,
fallbackLocale: 'pl',
messages: {
en: enLang,
pl: plLang
},
enableLegacy: false
});
export default i18n;
+1
View File
@@ -0,0 +1 @@
{}
+1
View File
@@ -0,0 +1 @@
{}
+3 -1
View File
@@ -3,4 +3,6 @@ import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
createApp(App).use(router).use(createPinia()).mount('#app');
import i18n from './i18n';
createApp(App).use(router).use(i18n).use(createPinia()).mount('#app');