1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 13:48:28 +09:00
cherrypick/packages/frontend/.storybook/preload-locale.ts
2023-05-28 20:37:55 +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['ko-KR'], undefined, 2)} as const;`,
'utf8',
)