1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-16 07:38:07 +09:00
hotomoe/packages/frontend/.storybook/preload-locale.ts
2024-02-13 15:59:27 +00:00

14 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['ja-JP'], undefined, 2)} as const;`,
'utf8',
)