mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 17:41:43 -05:00
pass locale as key to IntlProvider to force a rerender on locale change
See docs: https://github.com/yahoo/react-intl/wiki/Components#dynamic-language-selection
This commit is contained in:
parent
2d4889abcc
commit
41bcb84d0c
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ class App extends PureComponent {
|
|||
return (
|
||||
<IntlProvider
|
||||
locale={this.getLocale()}
|
||||
key={this.getLocale()}
|
||||
messages={Strings[this.getLocale()]}
|
||||
>
|
||||
<div className={`locale-${this.getLocale()}`}>
|
||||
|
|
Loading…
Add table
Reference in a new issue