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 #8211feature/default_network_editable
parent
c167fbf903
commit
624523168f
Loading…
Reference in new issue