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:
parent
b2fbc6399a
commit
ee8b91262d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user