fixed - Cannot read property '$t'

This commit is contained in:
carodej
2020-04-06 19:56:56 +02:00
parent 6235ffd0dc
commit 01b399e4a6
5 changed files with 158 additions and 45 deletions
+13 -4
View File
@@ -1,7 +1,16 @@
// index.js
import Vue from 'vue';
import VueI18n from 'vue-i18n';
import en from './lang/en.json'
import sk from './lang/sk.json'
export const languages = {
en, sk
}
Vue.use(VueI18n);
const i18n = new VueI18n({
locale: config.locale,
messages: Object.assign({
en, sk
}),
});
export default i18n;