1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-13 14:18:26 +09:00
cherrypick/packages/frontend/.storybook/preload-locale.ts
2023-07-14 17:36:02 +09:00

9 lines
243 B
TypeScript

import { writeFile } from 'node:fs/promises';
import locales from '../../../locales/index.js';
await writeFile(
new URL('locale.ts', import.meta.url),
`export default ${JSON.stringify(locales['ko-KR'], undefined, 2)} as const;`,
'utf8',
)