20 lines
350 B
TypeScript
20 lines
350 B
TypeScript
import Vue from 'vue';
|
|
import App from './App.vue';
|
|
import VueI18n from 'vue-i18n';
|
|
import { messages, defaultLocale } from '@/locales';
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
Vue.use(VueI18n);
|
|
|
|
const i18n = new VueI18n({
|
|
messages,
|
|
locale: defaultLocale,
|
|
fallbackLocale: defaultLocale
|
|
});
|
|
|
|
new Vue({
|
|
i18n,
|
|
render: (h) => h(App),
|
|
}).$mount('#app');
|