🐛 (transaction) set default locale
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
<template>
|
||||
<div class="transaction-create">
|
||||
<pre>
|
||||
name: {{ name }}
|
||||
amount: {{ amount }}
|
||||
currency: {{ currency }}
|
||||
date: {{ date }}
|
||||
location: {{ transaction.location }}
|
||||
payBy: {{ payBy }}
|
||||
payFor: {{ payFor }}
|
||||
</pre>
|
||||
<nav class="breadcrumb" aria-label="breadcrumbs" v-if="account">
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -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