Skip to content

Commit

Permalink
pass locale as key to IntlProvider to force a rerender on locale change
Browse files Browse the repository at this point in the history
  • Loading branch information
ochicf committed Sep 15, 2018
1 parent 2d4889a commit 41bcb84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vulcan-core/lib/modules/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`}>
Expand Down

0 comments on commit 41bcb84

Please sign in to comment.