1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-16 07:38:07 +09:00
hotomoe/packages/frontend/.storybook/preload-locale.ts
2023-03-20 14:56:34 +09:00

10 lines
264 B
TypeScript

import { writeFile } from 'node:fs/promises';
import { resolve } from 'node:path';
import * as locales from '../../../locales';
writeFile(
resolve(__dirname, 'locale.ts'),
`export default ${JSON.stringify(locales['ja-JP'], undefined, 2)} as const;`,
'utf8',
)