mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
59046d583d
* refactor(locales): use es module
* fix sw build
* fix gulp
* try fixing storybook
* Revert "try fixing storybook"
This reverts commit 5f2a4eee01
.
* 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',
|
|
)
|