Some checks failed
Check Misskey JS version / Check version (pull_request) Successful in 1m18s
Dockle / dockle (pull_request) Failing after 1m18s
API report (misskey.js) / report (pull_request) Successful in 4m31s
Test (backend) / unit (22.x) (pull_request) Failing after 6s
Test (backend) / e2e (22.x) (pull_request) Failing after 6s
Test (frontend) / vitest (22.x) (pull_request) Failing after 4s
Test (misskey.js) / test (22.x) (pull_request) Failing after 5s
Lint / pnpm_install (pull_request) Successful in 3m43s
Test (production install and build) / production (22.x) (pull_request) Successful in 3m34s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 3m40s
Lint / lint (backend) (pull_request) Failing after 2m3s
Lint / lint (misskey-js) (pull_request) Successful in 5m18s
Lint / lint (sw) (pull_request) Successful in 2m31s
Lint / lint (frontend) (pull_request) Failing after 11m13s
Lint / typecheck (misskey-js) (pull_request) Successful in 3m52s
Lint / typecheck (backend) (pull_request) Successful in 7m14s
13 lines
347 B
TypeScript
13 lines
347 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
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['en-US'], undefined, 2)} as const;`,
|
|
'utf8',
|
|
)
|