mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 10:43:09 +02:00
8 lines
243 B
TypeScript
8 lines
243 B
TypeScript
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',
|
|
)
|