mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
delay locales setup to avoid import error
This commit is contained in:
parent
bca25d8539
commit
827cca6273
4 changed files with 9 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
import i18n from '@/i18n'
|
||||
import store from '@/store'
|
||||
import i18n from '@/i18n'
|
||||
import supportedLocales from './supportedLocales'
|
||||
|
||||
let dateFnsLocale
|
||||
|
|
|
@ -5,12 +5,8 @@
|
|||
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import { initDefaultLocales } from './helpers'
|
||||
|
||||
// Plugin Initialization
|
||||
Vue.use(VueI18n)
|
||||
|
||||
export default new VueI18n({})
|
||||
|
||||
// Load default locales translations files and setup store data
|
||||
initDefaultLocales()
|
||||
|
|
|
@ -3,11 +3,12 @@ import App from './App.vue'
|
|||
import BootstrapVue from 'bootstrap-vue'
|
||||
import VueShowdown from 'vue-showdown'
|
||||
|
||||
import i18n from './i18n'
|
||||
import router from './router'
|
||||
import store from './store'
|
||||
import router from './router'
|
||||
import i18n from './i18n'
|
||||
|
||||
import { registerGlobalErrorHandlers } from './api'
|
||||
import { initDefaultLocales } from './i18n/helpers'
|
||||
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
@ -53,11 +54,13 @@ requireComponent.keys().forEach((fileName) => {
|
|||
|
||||
registerGlobalErrorHandlers()
|
||||
|
||||
// Load default locales translations files and setup store data
|
||||
initDefaultLocales()
|
||||
|
||||
const app = new Vue({
|
||||
i18n,
|
||||
router,
|
||||
store,
|
||||
router,
|
||||
i18n,
|
||||
render: h => h(App)
|
||||
})
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Vue from 'vue'
|
||||
import api from '@/api'
|
||||
import router from '@/router'
|
||||
import i18n from '@/i18n'
|
||||
import api from '@/api'
|
||||
import { timeout, isObjectLiteral } from '@/helpers/commons'
|
||||
|
||||
export default {
|
||||
|
|
Loading…
Reference in a new issue