2024-04-06 13:25:13 +08:00
|
|
|
import Vue from 'vue';
|
|
|
|
import VueI18n from 'vue-i18n';
|
|
|
|
import './backbone-i18n';
|
|
|
|
|
|
|
|
// Locales
|
|
|
|
import en from 'new-dashboard/i18n/locales/en';
|
2024-04-07 01:11:59 +08:00
|
|
|
import cn from 'new-dashboard/i18n/locales/zh-cn';
|
2024-04-06 13:25:13 +08:00
|
|
|
|
|
|
|
Vue.use(VueI18n);
|
|
|
|
|
|
|
|
// Create VueI18n instance with options
|
|
|
|
const i18n = new VueI18n({
|
2024-04-07 15:10:34 +08:00
|
|
|
locale: 'zh-cn',
|
2024-04-06 13:25:13 +08:00
|
|
|
messages: {
|
2024-04-06 22:58:39 +08:00
|
|
|
cn
|
2024-04-06 13:25:13 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default i18n;
|