mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-02 13:18:19 +00:00
Merge pull request #486 from trezor/fix/intl-losing-local-state
Fix/Prevent losing local state when switching language
This commit is contained in:
commit
5fb0c4cb96
@ -62,11 +62,7 @@ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (
|
|||||||
});
|
});
|
||||||
|
|
||||||
const ReactIntlProvider = ({ children, locale, messages }: Props) => (
|
const ReactIntlProvider = ({ children, locale, messages }: Props) => (
|
||||||
<IntlProvider
|
<IntlProvider locale={locale} messages={messages}>
|
||||||
key={locale} // forces rerender IntlProvider when lang file is downloaded
|
|
||||||
locale={locale}
|
|
||||||
messages={messages}
|
|
||||||
>
|
|
||||||
{children}
|
{children}
|
||||||
</IntlProvider>
|
</IntlProvider>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user