Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt support #21

Open
danielgroen opened this issue Mar 31, 2021 · 0 comments
Open

Nuxt support #21

danielgroen opened this issue Mar 31, 2021 · 0 comments

Comments

@danielgroen
Copy link

danielgroen commented Mar 31, 2021

Hi,

This addon would be very nice to have on my storybook app which runs on nuxt.

However i think this addon isn't made for nuxt.
Am i missing out something or does this addon simply support react only?

The error i get is: can't define property "components": Object is not extensible

I've got the following code in my .storybook/preview.js file:

import { addDecorator, addParameters } from '@storybook/vue'; // <- or your view layer
import { withI18n } from "storybook-addon-i18n";
import english from '../lang/en-US'
import dutch from '../lang/nl-NL'

export const decorators = []

addParameters({
  i18n: {
    provider: 'nuxt-i18n',
    providerProps: {
      english,
      dutch,
    },
    supportedLocales: ["en", "nl"],
    providerLocaleKey: "locale"
  }
});
addDecorator(withI18n);

afbeelding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant