Wsparcie języka angielskiego (beta)

This commit is contained in:
2021-03-06 20:10:24 +01:00
parent ce04b9112e
commit dc22e82c84
12 changed files with 295 additions and 36 deletions
+16
View File
@@ -2,11 +2,27 @@ import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import VueI18n from 'vue-i18n';
import enLang from '@/lang/en.json';
import plLang from '@/lang/pl.json';
Vue.use(VueI18n);
const i18n = new VueI18n({
locale: 'pl',
fallbackLocale: 'pl',
messages: {
en: enLang,
pl: plLang,
},
});
Vue.config.productionTip = false;
new Vue({
router,
store,
i18n,
render: h => h(App),
}).$mount('#app');