Move i18n to new store
This commit is contained in:
parent
edfaf5e80c
commit
aa98e83ff0
5 changed files with 27 additions and 7 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import vClickOutside from 'click-outside-vue3'
|
||||
import VueVirtualScroller from 'vue-virtual-scroller'
|
||||
|
|
@ -17,6 +18,8 @@ import { CURRENT_VERSION } from '../services/theme_data/theme_data.service.js'
|
|||
import { applyTheme, applyConfig } from '../services/style_setter/style_setter.js'
|
||||
import FaviconService from '../services/favicon_service/favicon_service.js'
|
||||
|
||||
import { useI18nStore } from '../stores/i18n'
|
||||
|
||||
let staticInitialResults = null
|
||||
|
||||
const parsedInitialResults = () => {
|
||||
|
|
@ -395,6 +398,11 @@ const afterStoreSetup = async ({ store, i18n }) => {
|
|||
})
|
||||
|
||||
const app = createApp(App)
|
||||
const pinia = createPinia()
|
||||
|
||||
app.use(pinia)
|
||||
|
||||
useI18nStore().setI18n(i18n)
|
||||
|
||||
app.use(router)
|
||||
app.use(store)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue