From 74e565b71c7ca5637bc26bfc5d611002b80a52e0 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Wed, 12 Jul 2023 21:27:27 +0200 Subject: [PATCH] fix storybook --- locales/index.d.ts | 2 +- packages/frontend/.storybook/preload-locale.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 0e03f0a36..a8948c0aa 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -2159,4 +2159,4 @@ export interface Locale { declare const locales: { [lang: string]: Locale; }; -export = locales; +export default locales; diff --git a/packages/frontend/.storybook/preload-locale.ts b/packages/frontend/.storybook/preload-locale.ts index 636931967..2b7362b88 100644 --- a/packages/frontend/.storybook/preload-locale.ts +++ b/packages/frontend/.storybook/preload-locale.ts @@ -1,5 +1,5 @@ import { writeFile } from 'node:fs/promises'; -import * as locales from '../../../locales/index.js'; +import locales from '../../../locales/index.js'; await writeFile( new URL('locale.ts', import.meta.url),