FitTrackee/fittrackee_client/src/store/index.ts

19 lines
352 B
TypeScript
Raw Normal View History

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'
export default createStore({
state: {
language: 'en',
},
mutations: {
2021-08-04 20:22:08 +02:00
setLanguage(state: DefaultStateTypes, language: string) {
state.language = language
},
},
actions: {},
2021-08-04 20:22:08 +02:00
modules: {
user,
},
2021-07-25 13:23:25 +02:00
})