Skip to content

Commit

Permalink
fix: pass down locale to IntlProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
tomschall committed Apr 23, 2024
1 parent 459dd59 commit a70e300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/volto/src/storybook.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ export default class Wrapper extends Component {
return (
<Provider store={store}>
<PluggablesProvider>
<IntlProvider locale="en">
<IntlProvider locale={this.props.customStore.intl.locale ?? 'en'}>
<StaticRouter location={this.props.location}>
<div className="volto-storybook-container">
{this.props.children}
Expand Down Expand Up @@ -1438,7 +1438,7 @@ export class RealStoreWrapper extends Component {
return (
<Provider store={store}>
<PluggablesProvider>
<IntlProvider locale="en">
<IntlProvider locale={this.props.customStore.intl.locale ?? 'en'}>
<StaticRouter location={this.props.location}>
<div className="volto-storybook-container">
{this.props.children}
Expand Down

0 comments on commit a70e300

Please sign in to comment.