feat: add language to topmenu + globals cleanup + i18n refactor (#3510)

This commit is contained in:
dni ⚡
2025-11-12 14:07:53 +00:00
committed by GitHub
parent 5e36bb4fcd
commit b6f533be24
15 changed files with 90 additions and 76 deletions
-8
View File
@@ -283,14 +283,6 @@ window.windowMixin = {
}
this.applyBackgroundImage()
let locale = this.$q.localStorage.getItem('lnbits.lang')
if (locale) {
window.LOCALE = locale
window.i18n.global.locale = locale
}
this.g.langs = window.langs ?? []
addEventListener('offline', event => {
console.log('offline', event)
this.g.offline = true