From 7de877fef68ce930486ba74d105f6e09ed6348a8 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 16 Jun 2025 17:34:05 +0200 Subject: [PATCH] fix(webapp): on translation not found must be a function (#8685) --- webapp/plugins/i18n.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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