mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-12 09:00:58 +00:00
force rerender on lang change
This commit is contained in:
parent
5fb0c4cb96
commit
db70dd706b
@ -62,7 +62,11 @@ const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (
|
||||
});
|
||||
|
||||
const ReactIntlProvider = ({ children, locale, messages }: Props) => (
|
||||
<IntlProvider locale={locale} messages={messages}>
|
||||
<IntlProvider
|
||||
locale={locale}
|
||||
messages={messages}
|
||||
key={locale} // forces rerender IntlProvider when lang file is downloaded
|
||||
>
|
||||
{children}
|
||||
</IntlProvider>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user