From 3500689ed0a7e19cd36283df10482171572d0d1c Mon Sep 17 00:00:00 2001 From: kumavis Date: Tue, 24 Apr 2018 09:53:16 -0700 Subject: i18n-helper - abort on i18n failure --- ui/i18n-helper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/i18n-helper.js b/ui/i18n-helper.js index 3eee55ae9..fddce522b 100644 --- a/ui/i18n-helper.js +++ b/ui/i18n-helper.js @@ -11,8 +11,9 @@ const getMessage = (locale, key, substitutions) => { const { current, en } = locale const entry = current[key] || en[key] if (!entry) { - log.error(`Translator - Unable to find value for "${key}"`) // throw new Error(`Translator - Unable to find value for "${key}"`) + log.error(`Translator - Unable to find value for "${key}"`) + return '' } let phrase = entry.message // perform substitutions -- cgit v1.2.3