21 lines
404 B
JavaScript
21 lines
404 B
JavaScript
import Vue from 'vue';
|
|
import VueI18n from 'vue-i18n';
|
|
import './backbone-i18n';
|
|
|
|
// Locales
|
|
import en from 'new-dashboard/i18n/locales/en';
|
|
import cn from 'new-dashboard/i18n/locales/zh-cn';
|
|
|
|
Vue.use(VueI18n);
|
|
|
|
// Create VueI18n instance with options
|
|
const i18n = new VueI18n({
|
|
locale: 'zh-CN',
|
|
messages: {
|
|
'zh-CN': cn, // 中文语言包
|
|
'en-US': en
|
|
}
|
|
});
|
|
|
|
export default i18n;
|