mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 13:43:08 +02:00
10 lines
264 B
TypeScript
10 lines
264 B
TypeScript
|
import { writeFile } from 'node:fs/promises';
|
||
|
import { resolve } from 'node:path';
|
||
|
import * as locales from '../../../locales';
|
||
|
|
||
|
writeFile(
|
||
|
resolve(__dirname, 'locale.ts'),
|
||
|
`export default ${JSON.stringify(locales['ja-JP'], undefined, 2)} as const;`,
|
||
|
'utf8',
|
||
|
)
|