summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2023-07-12 22:27:51 +0200
committerGitHub <noreply@github.com>2023-07-12 22:27:51 +0200
commitcd9affd568d3f7c02398630bbb0d19a69a9651aa (patch)
treef5a1900a484c24c68c9f66cf2dc262be448ed45c
parentfix: typo in custom emojis manager (#11250) (diff)
downloadmisskey-cd9affd568d3f7c02398630bbb0d19a69a9651aa.tar.gz
misskey-cd9affd568d3f7c02398630bbb0d19a69a9651aa.tar.bz2
misskey-cd9affd568d3f7c02398630bbb0d19a69a9651aa.zip
fix(locales, storybook): use default import (#11259)
-rw-r--r--locales/index.d.ts2
-rw-r--r--packages/frontend/.storybook/preload-locale.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/locales/index.d.ts b/locales/index.d.ts
index 8697b22e21..7555984b24 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -2158,4 +2158,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 636931967f..2b7362b88d 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),