Return key instead of empty string on i18n fail

feature/default_network_editable
Dan Finlay 7 years ago
parent 3500689ed0
commit b2fbc6399a
  1. 2
      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

Loading…
Cancel
Save