storybook-addon-material-ui icon indicating copy to clipboard operation
storybook-addon-material-ui copied to clipboard

Localization

Open Gustl22 opened this issue 3 years ago • 3 comments

If using localization, themes must be combined with Locale: https://material-ui.com/guides/localization/

Can you provide a method, which takes a Theme Object (e.g. created by createMuiTheme) instead of the raw Palette. Thx :)

Gustl22 avatar Mar 04 '21 16:03 Gustl22

We can't pass it between panel and stories because it's not serializable. What if we provide ability to specify localisation additionally

usulpro avatar Mar 04 '21 16:03 usulpro

Additionally you can have a look at https://github.com/react-theming/storybook-addon addon. It gives you more flexibility on creating providers

usulpro avatar Mar 04 '21 16:03 usulpro

I understand. If you want you can provide an extra param for the locale. But using the other provided lib worked just fine, thank you! Can be closed, or kept open for possible implementation :)

Gustl22 avatar Mar 04 '21 17:03 Gustl22