Form Newsletter and others fix

This commit is contained in:
Paolo Arena
2019-07-12 14:09:44 +02:00
parent 7f5076d8f2
commit b11dd46f9f
33 changed files with 119 additions and 47 deletions

View File

@@ -6,12 +6,14 @@ import { idbKeyval as storage } from '../js/storage.js'
import { costanti } from '../store/Modules/costanti'
import { ICfgData, IGlobalState } from '@src/model'
import { tools } from '@src/store/Modules/tools'
import { toolsext } from '@src/store/Modules/toolsext'
function saveConfigIndexDb(context) {
const data: ICfgData = {
_id: costanti.CONFIG_ID_CFG,
lang: UserStore.state.lang,
lang: toolsext.getLocale(),
token: UserStore.state.x_auth_token,
userId: UserStore.state.userId
}

View File

@@ -1,9 +1,9 @@
import { UserStore } from '@modules'
import { toolsext } from '@src/store/Modules/toolsext'
import messages from '../statics/i18n'
function translate(params) {
const msg = params.split('.')
const lang = UserStore.state.lang
const lang = toolsext.getLocale()
const stringa = messages[lang]