mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-23 04:14:46 +02:00
Fix:Initial language code setting eventBus not yet defined
This commit is contained in:
parent
ce528d4012
commit
a13217dddf
2 changed files with 6 additions and 6 deletions
|
@ -84,7 +84,7 @@ async function loadi18n(code) {
|
|||
|
||||
Vue.prototype.$setDateFnsLocale(languageCodeMap[code].dateFnsLocale)
|
||||
|
||||
this.$eventBus.$emit('change-lang', code)
|
||||
this?.$eventBus?.$emit('change-lang', code)
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue