renderer: fix i18n is not load correctly

This commit is contained in:
leejooy96 committed 2022-06-23 12:27:44 +09:00
1 parent e8a2b9c0e9
commit c1a666f48d
3 files changed
+13 -9

No files matched your search

+2
View File
@@ -6,11 +6,13 @@ import router from './router'
import vuetify from './plugins/vuetify'
import 'vuetify/dist/vuetify.min.css'
import i18n from './plugins/i18n'
const app = createApp(App)
app
.use(vuetify)
.use(i18n)
.use(router)
.use(createPinia())
+11 -3
View File
@@ -1,5 +1,13 @@
import { createI18n } from 'vue-i18n'
import en from '../../locales/en.json'
export default {
en
}
// eslint-disable-next-line new-cap
export default createI18n({
legacy: false,
locale: 'en',
fallbackLocale: 'en',
globalInjection: true,
messages: {
en
}
})
-6
View File
@@ -1,14 +1,8 @@
import { createVuetify } from 'vuetify/dist/vuetify'
import messages from './i18n'
const vuetify = createVuetify({
icons: {
iconfont: 'mdi'
},
locale: {
defaultLocale: 'en',
fallbackLocale: 'en',
messages
}
})