From ee8b91262df3c614252e7f2a0aae464f533a06ed Mon Sep 17 00:00:00 2001 From: kumavis Date: Wed, 25 Apr 2018 15:27:30 -0700 Subject: [PATCH] i18n-helper - wrap fallback in brackets to help indicate something is wrong --- 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 7753b3bda..79aa93116 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 key + return `[${key}]` } let phrase = entry.message // perform substitutions