mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Fix translation issues
This commit is contained in:
@ -15,7 +15,7 @@ export default {
|
||||
commit('company/' + companyTypes.BOOTSTRAP_COMPANIES, response.data.companies)
|
||||
commit('taxType/' + taxTypeTypes.BOOTSTRAP_TAX_TYPES, response.data.taxTypes)
|
||||
commit('preferences/' + preferencesTypes.SET_MOMENT_DATE_FORMAT, response.data.moment_date_format)
|
||||
|
||||
commit('preferences/' + preferencesTypes.SET_LANGUAGE_FORMAT, response.data.default_language)
|
||||
commit(types.UPDATE_APP_LOADING_STATUS, true)
|
||||
resolve(response)
|
||||
}).catch((err) => {
|
||||
|
||||
@ -1 +1,2 @@
|
||||
export const SET_MOMENT_DATE_FORMAT = 'SET_MOMENT_DATE_FORMAT'
|
||||
export const SET_LANGUAGE_FORMAT = 'SET_LANGUAGE_FORMAT'
|
||||
|
||||
@ -3,5 +3,8 @@ import * as types from './mutation-types'
|
||||
export default {
|
||||
[types.SET_MOMENT_DATE_FORMAT] (state, data) {
|
||||
state.momentDateFormat = data
|
||||
},
|
||||
[types.SET_LANGUAGE_FORMAT] (state, data) {
|
||||
window.i18n.locale = data
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user