mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fix(webapp): on translation not found must be a function (#8685)
This commit is contained in:
parent
61c1cc965a
commit
7de877fef6
@ -62,11 +62,9 @@ export default ({ app, req, cookie, store }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Vue.use(vuexI18n.plugin, store, {
|
Vue.use(vuexI18n.plugin, store, {
|
||||||
onTranslationNotFound:
|
onTranslationNotFound: function (locale, key) {
|
||||||
debug &&
|
|
||||||
function (locale, key) {
|
|
||||||
/* eslint-disable-next-line no-console */
|
/* eslint-disable-next-line no-console */
|
||||||
console.warn(`vuex-i18n :: Key '${key}' not found for locale '${locale}'`)
|
if (debug) console.warn(`vuex-i18n :: Key '${key}' not found for locale '${locale}'`)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user