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

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

This commit is contained in:
kumavis 2018-04-25 15:27:30 -07:00 committed by GitHub
parent b2fbc6399a
commit ee8b91262d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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