What is the correct format for lazy loading en.js
or ja.js
? The code below is not working:
// en.js
export default
{
title: 'Title',
greeting: 'How are you'
};
and
import Vue from 'vue';
import InventoryList from "./components/InventoryList";
import VueI18n from 'vue-i18n';
import messages from 'lang/fa';
Vue.use(VueI18n);
const i18n = new VueI18n({
locale: 'en',
fallbackLocale: 'en',
messages
});
Vue.component('inventory-list', InventoryList);
const app = new Vue({
i18n,
el: '#app',
});
Could you please advise on the correct approach?