mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-02 19:11:48 +02:00
Fix:Initial language code setting eventBus not yet defined
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user