Feature: add i18n for en

This commit is contained in:
PiEgg
2022-02-20 21:30:22 +08:00
parent 7f6d58f992
commit 1936ccfedc
15 changed files with 333 additions and 19 deletions

View File

@@ -10,10 +10,14 @@ import mainMixin from './renderer/utils/mainMixin'
import bus from '@/utils/bus'
import { initTalkingData } from './renderer/utils/analytics'
import db from './renderer/utils/db'
import { T } from '#/i18n/index'
import { T, i18n } from '#/i18n/index'
import { handleURLParams } from '@/utils/beforeOpen'
webFrame.setVisualZoomLevelLimits(1, 1)
// do here before vue init
handleURLParams()
Vue.config.productionTip = false
Vue.prototype.$builtInPicBed = [
'smms',
@@ -28,6 +32,7 @@ Vue.prototype.$$db = db
Vue.prototype.$http = axios
Vue.prototype.$bus = bus
Vue.prototype.$T = T
Vue.prototype.$i18n = i18n
Vue.use(ElementUI)
Vue.use(VueLazyLoad)