1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/pages/confirm-transaction-base
Mark Stacey 624523168f
Remove fallback for missing localized messages (#8212)
The translation helper function we use everywhere (`t`) would fallback
to the message `[${key}]` for any key not found in the set of localized
messages. Instead it how returns `undefined` in that case.

`[${key}]` isn't something you'd typically want to show to users, so
this fallback wasn't overly useful in practice. At best it served to
hide errors.

The falsey return value in the case where the message is missing makes
it easier to implement a fallback for that case. Such a fallback is
used in the `confirm-transaction-base` component, to restore the
fallback behavior accidentally changed in #8211
2020-03-23 11:54:57 -03:00
..
tests Update ESLint rules for test suite (#8023) 2020-02-11 13:21:13 -03:30
confirm-transaction-base.component.js Remove fallback for missing localized messages (#8212) 2020-03-23 11:54:57 -03:00
confirm-transaction-base.container.js Remove recompose (#8097) 2020-02-24 19:28:26 -03:30
index.js Folder restructure (#6304) 2019-03-21 20:33:30 -02:30