We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1f5529 commit bf4866dCopy full SHA for bf4866d
.storybook/preview.ts
@@ -21,9 +21,7 @@ globalThis.defineOgImageComponent = fn()
21
// Subscribe to locale changes from storybook-i18n addon (once, outside decorator)
22
let currentI18nInstance: any = null
23
addons.getChannel().on('LOCALE_CHANGED', (newLocale: string) => {
24
- if (currentI18nInstance) {
25
- currentI18nInstance.setLocale(newLocale)
26
- }
+ currentI18nInstance?.setLocale(newLocale)
27
})
28
29
const preview: Preview = {
0 commit comments