20 lines
343 B
JavaScript
20 lines
343 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/cn';
|
|
|
|
Vue.use(VueI18n);
|
|
|
|
// Create VueI18n instance with options
|
|
const i18n = new VueI18n({
|
|
locale: 'en',
|
|
messages: {
|
|
cn
|
|
}
|
|
});
|
|
|
|
export default i18n;
|