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