fix(webapp): on translation not found must be a function (#8685)

This commit is contained in:
Moriz Wahl 2025-06-16 17:34:05 +02:00 committed by GitHub
parent 61c1cc965a
commit 7de877fef6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -62,12 +62,10 @@ export default ({ app, req, cookie, store }) => {
}
Vue.use(vuexI18n.plugin, store, {
onTranslationNotFound:
debug &&
function (locale, key) {
/* eslint-disable-next-line no-console */
console.warn(`vuex-i18n :: Key '${key}' not found for locale '${locale}'`)
},
onTranslationNotFound: function (locale, key) {
/* eslint-disable-next-line no-console */
if (debug) console.warn(`vuex-i18n :: Key '${key}' not found for locale '${locale}'`)
},
})
let userLocale = app.$env.LANGUAGE_DEFAULT