Skip to content

Commit d53a5f8

Browse files
committed
Fix language switch in storybook
1 parent 9dcaab0 commit d53a5f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/i18n.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ export function startI18nLogic(params: { registerEffectAction: (action: () => vo
143143
const { registerEffectAction } = params;
144144

145145
registerEffectAction(() => {
146+
if ((window as any).IS_STORYBOOK) {
147+
return;
148+
}
149+
146150
const lang = navigator.language;
147151

148152
if (lang === "fr") {

0 commit comments

Comments
 (0)