diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-04-26 06:47:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 06:47:07 +0800 |
commit | 21349dd612f1eed0e4f97e4ebf27bed05d5b8992 (patch) | |
tree | d729171973ebae24e66987eaa47b450cf62c4ea7 | |
parent | bd04fe592e5f7913d7348c481cb29270a1c4353b (diff) | |
parent | ee8b91262df3c614252e7f2a0aae464f533a06ed (diff) | |
download | tangerine-wallet-browser-21349dd612f1eed0e4f97e4ebf27bed05d5b8992.tar tangerine-wallet-browser-21349dd612f1eed0e4f97e4ebf27bed05d5b8992.tar.gz tangerine-wallet-browser-21349dd612f1eed0e4f97e4ebf27bed05d5b8992.tar.bz2 tangerine-wallet-browser-21349dd612f1eed0e4f97e4ebf27bed05d5b8992.tar.lz tangerine-wallet-browser-21349dd612f1eed0e4f97e4ebf27bed05d5b8992.tar.xz tangerine-wallet-browser-21349dd612f1eed0e4f97e4ebf27bed05d5b8992.tar.zst tangerine-wallet-browser-21349dd612f1eed0e4f97e4ebf27bed05d5b8992.zip |
Merge pull request #4065 from MetaMask/i18n-helper-bugfix
i18n-helper - abort on i18n failure
-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..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 |