storybook icon indicating copy to clipboard operation
storybook copied to clipboard

[Bug]: Vue i18n locale changes in storybook 7.6 not working consistently

Open ben-hamel opened this issue 1 year ago • 2 comments

Describe the bug

Vue i18n isn't changing locales consistently. It seems to change correctly in the component, but not in the locale changer. So locale scope of vuei18n is changing but not global scope. when you refresh the page or if app has only one story then it will work as expected.

My work has a bigger project where we first found this. it was working in Storybook 6.5 with Vite but now since our upgrade to 7.6, we can't get the locale working consistently in the Storybook or it's tests.

To Reproduce

https://stackblitz.com/edit/github-mrfmpx?file=src%2Fcomponents%2FTestOne.stories.js

System

Storybook Environment Info:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm <----- active
    pnpm: 8.14.0 - /usr/local/bin/pnpm
  npmPackages:
    @storybook/addon-essentials: ^8.0.0-alpha.10 => 8.0.0-alpha.10 
    @storybook/addon-interactions: ^8.0.0-alpha.10 => 8.0.0-alpha.10 
    @storybook/addon-links: ^8.0.0-alpha.10 => 8.0.0-alpha.10 
    @storybook/blocks: ^8.0.0-alpha.10 => 8.0.0-alpha.10 
    @storybook/test: ^8.0.0-alpha.10 => 8.0.0-alpha.10 
    @storybook/vue3: ^8.0.0-alpha.10 => 8.0.0-alpha.10 
    @storybook/vue3-vite: ^8.0.0-alpha.10 => 8.0.0-alpha.10 
    storybook: ^8.0.0-alpha.10 => 8.0.0-alpha.10

Additional context

No response

ben-hamel avatar Jan 17 '24 00:01 ben-hamel

@kasperpeulen @chakAs3 can one of you please give a hand here?

shilman avatar Jan 17 '24 09:01 shilman

Sorry @shilman i was busy lately, i will check it out this week

chakAs3 avatar Jan 30 '24 07:01 chakAs3

hey, wondering if any update on this issue?

ben-hamel avatar Mar 19 '24 14:03 ben-hamel

hey, wondering if any update on this issue?

have check the new release v8 ?

chakAs3 avatar Mar 21 '24 13:03 chakAs3