mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 21:23:08 +02: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
8 lines
248 B
TypeScript
8 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',
|
|
)
|