aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-04-27 05:16:35 +0800
committerGitHub <noreply@github.com>2018-04-27 05:16:35 +0800
commit4e7b0ff15c5a57cd58497aa292c884a97e8a5d23 (patch)
treeb0d825eac0e2c187c89aacba0df2d7d2a9d44131 /ui
parentdcd04091cc0149cbb0a49bfdf7897e2ac480c7bc (diff)
parentb97457e9e2b74ca1bffc7655568e4f61dba1c409 (diff)
downloadtangerine-wallet-browser-4e7b0ff15c5a57cd58497aa292c884a97e8a5d23.tar.gz
tangerine-wallet-browser-4e7b0ff15c5a57cd58497aa292c884a97e8a5d23.tar.zst
tangerine-wallet-browser-4e7b0ff15c5a57cd58497aa292c884a97e8a5d23.zip
Merge pull request #4095 from MetaMask/v4.6.0v4.6.0
Version 4.6.0
Diffstat (limited to 'ui')
-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..79aa93116 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 `[${key}]`
}
let phrase = entry.message
// perform substitutions