mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-02 08:05:58 +09:00
59046d583d
* refactor(locales): use es module * fix sw build * fix gulp * try fixing storybook * Revert "try fixing storybook" This reverts commit 5f2a4eee016776381a7d80407e28d129c252228f. * try fixing storybook 2 * Update main.ts * Update build.js * Update main.ts * Update changes.ts * fix sw lint * Update build.js
9 lines
248 B
TypeScript
9 lines
248 B
TypeScript
import { writeFile } from 'node:fs/promises';
|
|
import * as locales from '../../../locales/index.js';
|
|
|
|
await writeFile(
|
|
new URL('locale.ts', import.meta.url),
|
|
`export default ${JSON.stringify(locales['ja-JP'], undefined, 2)} as const;`,
|
|
'utf8',
|
|
)
|