1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Return key instead of empty string on i18n fail

This commit is contained in:
Dan Finlay 2018-04-25 10:57:44 -07:00
parent 3500689ed0
commit b2fbc6399a

View File

@ -13,7 +13,7 @@ const getMessage = (locale, key, substitutions) => {
if (!entry) { if (!entry) {
// throw new 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}"`) log.error(`Translator - Unable to find value for "${key}"`)
return '' return key
} }
let phrase = entry.message let phrase = entry.message
// perform substitutions // perform substitutions