aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-04-25 00:53:16 +0800
committerGitHub <noreply@github.com>2018-04-25 00:53:16 +0800
commit3500689ed0a7e19cd36283df10482171572d0d1c (patch)
treef492fe953c0bf90b0c4d492da170ff902d3a72fd
parentac334d7b1a9cd8b6888f5c4f3309740d5df62474 (diff)
downloadtangerine-wallet-browser-3500689ed0a7e19cd36283df10482171572d0d1c.tar
tangerine-wallet-browser-3500689ed0a7e19cd36283df10482171572d0d1c.tar.gz
tangerine-wallet-browser-3500689ed0a7e19cd36283df10482171572d0d1c.tar.bz2
tangerine-wallet-browser-3500689ed0a7e19cd36283df10482171572d0d1c.tar.lz
tangerine-wallet-browser-3500689ed0a7e19cd36283df10482171572d0d1c.tar.xz
tangerine-wallet-browser-3500689ed0a7e19cd36283df10482171572d0d1c.tar.zst
tangerine-wallet-browser-3500689ed0a7e19cd36283df10482171572d0d1c.zip
i18n-helper - abort on i18n failure
-rw-r--r--ui/i18n-helper.js3
1 files changed, 2 insertions, 1 deletions
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