++ Open Web Analytics

https://test.freeplanet.app/owa
This commit is contained in:
Paolo Arena
2019-03-17 02:09:10 +01:00
parent f23f60e540
commit 43a568bce7
7 changed files with 40 additions and 24 deletions

View File

@@ -1,15 +1,15 @@
import { UserStore } from "../store/Modules";
import messages from "../statics/i18n";
import { UserStore } from '../store/Modules'
import messages from '../statics/i18n'
function translate(params) {
let msg = params.split('.')
let lang = UserStore.state.lang
const msg = params.split('.')
const lang = UserStore.state.lang
let stringa = messages[lang]
const stringa = messages[lang]
let ris = stringa
if (ris !== undefined) {
msg.forEach(param => {
msg.forEach((param) => {
ris = ris[param]
})
} else {