i18n-helper - wrap fallback in brackets to help indicate something is wrong

feature/default_network_editable
kumavis 7 years ago committed by GitHub
parent b2fbc6399a
commit ee8b91262d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/i18n-helper.js

@ -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 key return `[${key}]`
} }
let phrase = entry.message let phrase = entry.message
// perform substitutions // perform substitutions

Loading…
Cancel
Save