2021-07-25 13:23:25 +02:00
|
|
|
import { createStore } from 'vuex'
|
2021-08-04 20:22:08 +02:00
|
|
|
import { DefaultStateTypes } from '@/types/state'
|
|
|
|
import user from './modules/user'
|
2021-07-24 20:56:37 +02:00
|
|
|
|
|
|
|
export default createStore({
|
2021-08-04 13:59:51 +02:00
|
|
|
state: {
|
|
|
|
language: 'en',
|
|
|
|
},
|
|
|
|
mutations: {
|
2021-08-04 20:22:08 +02:00
|
|
|
setLanguage(state: DefaultStateTypes, language: string) {
|
2021-08-04 13:59:51 +02:00
|
|
|
state.language = language
|
|
|
|
},
|
|
|
|
},
|
2021-07-24 20:56:37 +02:00
|
|
|
actions: {},
|
2021-08-04 20:22:08 +02:00
|
|
|
modules: {
|
|
|
|
user,
|
|
|
|
},
|
2021-07-25 13:23:25 +02:00
|
|
|
})
|