From 7504b37254d5ee87d20b768fa3ccb9c39251e3cd Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Fri, 9 Dec 2022 19:58:58 +0100 Subject: [PATCH] remove warnings from translator --- plugins/globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/globals.js b/plugins/globals.js index d06408871..b8b19eedd 100644 --- a/plugins/globals.js +++ b/plugins/globals.js @@ -10,7 +10,7 @@ export default ({ app, store }) => { Vue.prototype.$base = process.env.BASE_URL; - Vue.prototype.$t = (key, params = {}) => translator.translate(key, params, warn); + Vue.prototype.$t = (key, params = {}, warn = false) => translator.translate(key, params, warn); Vue.prototype.$te = (key) => translator.has(key); Vue.prototype.$translateForPronoun = (str, pronoun) => pronoun.format(