chore: i18n setup

This commit is contained in:
2025-01-31 02:11:09 +01:00
parent a252140b4f
commit 518b2da700
6 changed files with 56 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
import { createI18n } from 'vue-i18n';
import localePL from './locales/pl.json';
import localeEN from './locales/en.json';
const i18n = createI18n({
locale: 'pl',
fallbackLocale: 'pl',
legacy: false,
messages: {
pl: localePL,
en: localeEN,
},
});
export default i18n;
+1
View File
@@ -0,0 +1 @@
{}
+1
View File
@@ -0,0 +1 @@
{}
+3 -2
View File
@@ -2,8 +2,9 @@ import { createApp } from 'vue';
import App from './App.vue';
import { createPinia } from 'pinia';
import './style.css'
import './style.css';
import i18n from './i18n';
const pinia = createPinia();
createApp(App).use(pinia).mount('#app');
createApp(App).use(i18n).use(pinia).mount('#app');