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-06 23:27:05 +08:00
|
|
|
import cn from 'new-dashboard/i18n/locales/cn';
|
2024-04-06 13:25:13 +08:00
|
|
|
|
|
|
|
Vue.use(VueI18n);
|
|
|
|
|
|
|
|
// Create VueI18n instance with options
|
|
|
|
const i18n = new VueI18n({
|
2024-04-06 23:42:55 +08:00
|
|
|
locale: 'en',
|
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;
|