🐛 (transaction) set default locale
This commit is contained in:
@@ -11,6 +11,8 @@ import { hasGoodNetwork } from '@/utils/network'
|
||||
import { toHex } from '@/utils'
|
||||
import queueNotifService from '@/services/QueueNotifService'
|
||||
|
||||
const DEFAULT_LOCALE = 'fr'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
const SET_LOCALE: string = 'SET_LOCALE'
|
||||
@@ -29,14 +31,14 @@ interface IState {
|
||||
|
||||
export default new Vuex.Store<IState>({
|
||||
state: {
|
||||
locale: '',
|
||||
locale: DEFAULT_LOCALE,
|
||||
user: null,
|
||||
hexUser: null,
|
||||
title: null,
|
||||
publicAccountIds: []
|
||||
},
|
||||
getters: {
|
||||
locale: ({ locale }) => locale,
|
||||
locale: ({ locale }) => locale || DEFAULT_LOCALE,
|
||||
user: ({ user }) => user,
|
||||
title: ({ title }) => title,
|
||||
username: (state: IState) =>
|
||||
|
||||
Reference in New Issue
Block a user