1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 12:18:09 +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:
Vladimir Volek 2019-04-02 17:50:58 +02:00 committed by GitHub
commit 5fb0c4cb96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,11 +62,7 @@ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (
});
const ReactIntlProvider = ({ children, locale, messages }: Props) => (
<IntlProvider
key={locale} // forces rerender IntlProvider when lang file is downloaded
locale={locale}
messages={messages}
>
<IntlProvider locale={locale} messages={messages}>
{children}
</IntlProvider>
);