fix: vue3 language switcher (#2712)

This commit is contained in:
dni ⚡
2024-09-25 12:09:00 +02:00
committed by GitHub
parent 04882e05a3
commit 3ac6bc3c3b
12 changed files with 269 additions and 372 deletions
+2 -2
View File
@@ -23,10 +23,10 @@ window.app = Vue.createApp({
},
methods: {
activeLanguage: function (lang) {
return window.i18n.locale === lang
return window.i18n.global.locale === lang
},
changeLanguage: function (newValue) {
window.i18n.locale = newValue
window.i18n.global.locale = newValue
this.$q.localStorage.set('lnbits.lang', newValue)
},
toggleDarkMode: function () {