From b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 25 Apr 2018 10:57:44 -0700 Subject: [PATCH] Return key instead of empty string on i18n fail --- ui/i18n-helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/i18n-helper.js b/ui/i18n-helper.js index fddce522b..7753b3bda 100644 --- a/ui/i18n-helper.js +++ b/ui/i18n-helper.js @@ -13,7 +13,7 @@ const getMessage = (locale, key, substitutions) => { if (!entry) { // throw new Error(`Translator - Unable to find value for "${key}"`) log.error(`Translator - Unable to find value for "${key}"`) - return '' + return key } let phrase = entry.message // perform substitutions