follow the online tutorials:
//main.js
import VueI18n from "vue-i18n";
Vue.use(VueI18n)
const i18n = new VueI18n({
locale: "English",
messages:{
"English": require("./common/English.js"),
}
})
//English.js
export const m = {
music: "Music"
}
//xx.vue
<h3>{{$t("m.music")}}</h3>
The effect is coming out, but the browser keeps issuing warnings
what is the reason for this?