Fix translation issues

This commit is contained in:
radhu587
2019-11-11 17:53:47 +05:30
parent 80a761dbe0
commit ff3121e0d9
17 changed files with 53 additions and 37 deletions

View File

@ -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) => {

View File

@ -1 +1,2 @@
export const SET_MOMENT_DATE_FORMAT = 'SET_MOMENT_DATE_FORMAT'
export const SET_LANGUAGE_FORMAT = 'SET_LANGUAGE_FORMAT'

View File

@ -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
}
}