Add temporary translated data generation script

This commit is contained in:
Sakura Knoll
2022-01-08 21:54:31 +09:00 Unverified
parent 072288b8b8
commit 0043502884
2 changed files with 109 additions and 0 deletions
+8
View File
@@ -22,3 +22,11 @@ export function readJsonFileSync(pathname: string) {
return JSON.parse(rawData)
}
export function writeFileSync(pathname: string, content: string) {
return fs.writeFileSync(resolvePathname(pathname), content)
}
export function existsSync(pathname: string) {
return fs.existsSync(resolvePathname(pathname))
}