fix(locales, storybook): use default import (#11259)

This commit is contained in:
Kagami Sascha Rosylight 2023-07-12 22:27:51 +02:00 committed by GitHub
parent b97694b083
commit cd9affd568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
locales/index.d.ts vendored
View File

@ -2158,4 +2158,4 @@ export interface Locale {
declare const locales: { declare const locales: {
[lang: string]: Locale; [lang: string]: Locale;
}; };
export = locales; export default locales;

View File

@ -1,5 +1,5 @@
import { writeFile } from 'node:fs/promises'; import { writeFile } from 'node:fs/promises';
import * as locales from '../../../locales/index.js'; import locales from '../../../locales/index.js';
await writeFile( await writeFile(
new URL('locale.ts', import.meta.url), new URL('locale.ts', import.meta.url),