From 6a460532896f0a8b2096863faf67df6aac6e3c33 Mon Sep 17 00:00:00 2001 From: William Correa Date: Thu, 28 Mar 2019 21:33:43 -0300 Subject: [PATCH] [#4/fix] Fix uncaught string method usage --- src/app/Util/Lang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/Util/Lang.js b/src/app/Util/Lang.js index 4e03e49..0c9d35c 100644 --- a/src/app/Util/Lang.js +++ b/src/app/Util/Lang.js @@ -17,7 +17,7 @@ export const lang = (key, fallback = '') => { continue } - let clean = key[path].replace(/\//g, '.') + let clean = String(key[path]).replace(/\//g, '.') if (!window.app.i18n.te(clean)) { continue }