HTML Editor go on
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user