mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
try fixing storybook
This commit is contained in:
parent
a831411eea
commit
5f2a4eee01
@ -1,9 +1,11 @@
|
|||||||
import { writeFile } from 'node:fs/promises';
|
import { writeFile } from 'node:fs/promises';
|
||||||
import { resolve } from 'node:path';
|
import { resolve } from 'node:path';
|
||||||
import * as locales from '../../../locales';
|
|
||||||
|
|
||||||
writeFile(
|
(async () => {
|
||||||
resolve(__dirname, 'locale.ts'),
|
const { default: locales } = await import('../../../locales/index.js');
|
||||||
`export default ${JSON.stringify(locales['ja-JP'], undefined, 2)} as const;`,
|
await writeFile(
|
||||||
'utf8',
|
resolve(__dirname, 'locale.ts'),
|
||||||
)
|
`export default ${JSON.stringify(locales['ja-JP'], undefined, 2)} as const;`,
|
||||||
|
'utf8',
|
||||||
|
)
|
||||||
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user