mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
624523168f
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 |
||
---|---|---|
.. | ||
tests | ||
confirm-transaction-base.component.js | ||
confirm-transaction-base.container.js | ||
index.js |