mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix(webapp): on translation not found must be a function (#8685)
This commit is contained in:
parent
61c1cc965a
commit
7de877fef6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user