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