Skip to content

Instantly share code, notes, and snippets.

View pauloandreget's full-sized avatar

Paulo Rodrigues pauloandreget

  • Portugal
View GitHub Profile
@justincy
justincy / README.md
Last active June 21, 2024 10:30
Using next-i18next in Storybook

Using next-i18next in Storybook

next-i18next is built to work server-side as well as client-side. Storybook doesn't support server-side rendering so there's nowhere to add the next-i18next middleware. The good news is that means we don't have to support server-side rendering and can just use the underlying react-i18next and i18next-instance.

Adding a Storybook Decorator

We're going to add a decorator which will allow us wrap all stories in the ``.