diff --git a/webapp/plugins/i18n.js b/webapp/plugins/i18n.js index 288ce2fe9..7af8c292a 100644 --- a/webapp/plugins/i18n.js +++ b/webapp/plugins/i18n.js @@ -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