#Vue3+vue-i18n unable to have a working decorator

2 messages · Page 1 of 1 (latest)

young mango
#

Hi everyone!

I’m trying to make i18n change language through Storybook’s preview globals.

I now have a drop-down menu for language change and vue-i18n is running in my storybook.
I was able to get “useGlobals” to work inside my decorator but the problem now is that I don’t have access to the storybook app context to be able to pass the new selected language to vie-i18n.

Do you have any idea on how I can access my app context inside the global decorators?

remote linden
#

Can you show some code, the (global?) decorator, the app context and the story.
How do they relate to each other?