HTML Editor go on

This commit is contained in:
Surya Paolo
2022-11-13 22:39:25 +01:00
parent 5076d72523
commit 711f1b515d
35 changed files with 3684 additions and 1663 deletions

View File

@@ -138,11 +138,9 @@ export const toolsext = {
if (mylang === 'enUs') return 'en-us'
return mylang
},
setLangAtt($router: Router, mylang: string) {
setLangAtt($q: any, $router: Router, mylang: string) {
const globalStore = useGlobalStore()
const $q = useQuasar()
console.log('setLangAtt =', mylang)
// console.log('PRIMA this.$q.lang.isoName', this.$q.lang.isoName)
@@ -150,7 +148,7 @@ export const toolsext = {
import(`quasar/lang/${this.getlangforQuasar(mylang)}`).then((lang) => {
console.log(' Import dinamically lang =', lang)
$q.lang.set(this.getlangforQuasar(lang.default))
$q.lang.set(this.getlangforQuasar(lang.default.isoName))
import('../../statics/i18n').then(() => {
console.log(' *** MY LANG DOPO=', $q.lang.isoName)
})
@@ -274,7 +272,7 @@ export const toolsext = {
mylang = 'it'
// Metti come default
userStore.setlang($router, mylang)
userStore.setlang($q, $router, mylang)
}
}
@@ -284,7 +282,7 @@ export const toolsext = {
}
if (this.getLocale(true) === '') {
userStore.setlang($router, mylang)
userStore.setlang($q, $router, mylang)
}
// console.log('mylang calc : ', mylang)