diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-04-25 00:53:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 00:53:16 +0800 |
commit | 3500689ed0a7e19cd36283df10482171572d0d1c (patch) | |
tree | f492fe953c0bf90b0c4d492da170ff902d3a72fd /ui | |
parent | ac334d7b1a9cd8b6888f5c4f3309740d5df62474 (diff) | |
download | tangerine-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
Diffstat (limited to 'ui')
-rw-r--r-- | ui/i18n-helper.js | 3 |
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 |