You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't try this out myself yet, but generally this should be possible if you add a global decorator which configures the NextIntlProvider with an explicit locale and messages.
I've added a small fix in #76 that should help with this use case, so if you're on a previous version and would like to integrate with Storybook, please upgrade!
Storybook is very useful for testing components in isolation, most of said components use the useTranslation hook and Storybook doesn't recognize it
A Storyook addon similar to the one used by react-intl would be useful https://storybook.js.org/addons/storybook-addon-intl/
One alternative is passing the hook from the parent to the child that way the child is unaware of the hook and props can be used.
The text was updated successfully, but these errors were encountered: