Skip to content

Commit

Permalink
Merge pull request #2072 from OrigenStudio/fix/locale-change
Browse files Browse the repository at this point in the history
Pass locale as key to IntlProvider to force a rerender on locale change
  • Loading branch information
SachaG authored Sep 16, 2018
2 parents 62370e3 + 41bcb84 commit fdcdea9
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 fdcdea9

Please sign in to comment.