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

Dynamic language loading #39

Closed
davidsamacoits opened this issue Sep 20, 2019 · 3 comments
Closed

Dynamic language loading #39

davidsamacoits opened this issue Sep 20, 2019 · 3 comments

Comments

@davidsamacoits
Copy link

Looks like there is no way (or at least I couldn't find one) to provide a specific language for a specific story.
Let's say I was to display a story in English and then the same one in French. How would I do it?
Because when I'm adding my decorator it's for the entire Storybook, and I can't change it afterwards without affecting the entire application.
Thanks for your help.

@davidsamacoits davidsamacoits changed the title Dynamically language loading Dynamic language loading Sep 20, 2019
@floriangosse
Copy link
Member

That's an interesting idea. Since we can pass options to stories this shouldn't be too hard to do.

Are you interested in submitting a PR for this feature?

@davidsamacoits
Copy link
Author

Unfortunately pretty busy at the moment but I'll submit something if I figure a nice way to solve this problem

@floriangosse
Copy link
Member

This works now in the new version of storybook-addon-intl. You can configure the addon on a per story bases. Please check it out.

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

No branches or pull requests

2 participants