-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Storybook][i18n] initialize i18n with english locale #185033
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested for 2 plugin Storybook (Security Solution and Threat Intelligence) and 1 package Storybook (kbn-expandable-flyout) and they all work now!
Thanks for fixing this!
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
## Summary We added a check to ensure that `i18n` is initialized on the browser before any javascript code uses `i18n`. We need to do the same in the storybook so it works properly. To summarize in a couple of pictures 😄 **Before PR:** ![image](https://github.com/elastic/kibana/assets/6191849/3a598dd9-963d-4f4a-aa2a-d98a3d7f379a) **After PR:** ![image](https://github.com/elastic/kibana/assets/6191849/e0f0b4a7-69f4-4eb1-b5b6-14bdfa716caf) cc @petrklapka
Summary
We added a check to ensure that
i18n
is initialized on the browser before any javascript code usesi18n
. We need to do the same in the storybook so it works properly.To summarize in a couple of pictures 😄
Before PR:
After PR:
cc @petrklapka