-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Option to change the language attribute #11706
Comments
I found a quick workaround until this is natively implemented. You can add the following script to your ./storybook/preview-head.html file and it works (tested on Chrome): |
@07Gond can we close this with the proposed workaround? |
This workaround works. This is nice, but I personally think that it would be better with a proper parameter to do this. What do you think about it? I never contributed to storybook's code. Does anybody knows if it would be hard to implement it? |
To get a working hyphenation via CSS |
Is your feature request related to a problem? Please describe.
I need to test some multilingual sites and always the site is rendered with
<html lang="en">
Describe the solution you'd like
The storybook
.ejs
template should include a language variable instead of the harcoded option as is it right now.Describe alternatives you've considered
Maybe create an addon and we can change the language in runtime but not all the features could respond to the runtime changes. I think is better change the storybook template in order to accept variables there in the lang attribute.
Are you able to assist bring the feature to reality?
Yes, I can make a try. But if anyone can help me, would be great 😄
Additional context
Could be very useful if then we can change the lang attribute in the preview panel and the server reloads the page.
The text was updated successfully, but these errors were encountered: