try fixing storybook
This commit is contained in:
parent
a831411eea
commit
5f2a4eee01
|
@ -1,9 +1,11 @@
|
|||
import { writeFile } from 'node:fs/promises';
|
||||
import { resolve } from 'node:path';
|
||||
import * as locales from '../../../locales';
|
||||
|
||||
writeFile(
|
||||
(async () => {
|
||||
const { default: locales } = await import('../../../locales/index.js');
|
||||
await writeFile(
|
||||
resolve(__dirname, 'locale.ts'),
|
||||
`export default ${JSON.stringify(locales['ja-JP'], undefined, 2)} as const;`,
|
||||
'utf8',
|
||||
)
|
||||
)
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue