Vue I18n 官网教程:http://kazupon.github.io/vue-i18n/zh/introduction.html#%E8%B5%9E%E5%8A%A9%E5%95%86
结构
|___ src
|___ i18n
|___ langs
| |___ cn.js
| |___ en.js
| |___ ja.js
| |___ index.js
|___ index.js
i18n/langs/index.js
文件
import cn from './cn';
import en from './en';
import ja from './ja';
const messages = {
cn,
en,
ja
};
// 热重载
if (module.hot) {
module.hot.accept(['./cn', './en', './ja'], function () {
i18n.setLocaleMessage('cn',