aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-04-26 01:57:44 +0800
committerDan Finlay <dan@danfinlay.com>2018-04-26 01:57:44 +0800
commitb2fbc6399a94fee5e6fee17f2a84c0d28ef1e042 (patch)
treeede02ae02762c2806f7dddf54b17a0b8391002c4 /ui
parent3500689ed0a7e19cd36283df10482171572d0d1c (diff)
downloadtangerine-wallet-browser-b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042.tar
tangerine-wallet-browser-b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042.tar.gz
tangerine-wallet-browser-b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042.tar.bz2
tangerine-wallet-browser-b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042.tar.lz
tangerine-wallet-browser-b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042.tar.xz
tangerine-wallet-browser-b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042.tar.zst
tangerine-wallet-browser-b2fbc6399a94fee5e6fee17f2a84c0d28ef1e042.zip
Return key instead of empty string on i18n fail
Diffstat (limited to 'ui')
-rw-r--r--ui/i18n-helper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/i18n-helper.js b/ui/i18n-helper.js
index fddce522b..7753b3bda 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 ''
+ return key
}
let phrase = entry.message
// perform substitutions