mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-03-29 04:59:54 +00:00
fix build script a lil
This commit is contained in:
4
build.ts
4
build.ts
@@ -197,8 +197,8 @@ async function build() {
|
||||
langs = langs.filter((e) => e !== "qqq.json");
|
||||
const langobj = {};
|
||||
for (const lang of langs) {
|
||||
const str = await fs.readFile(path.join(__dirname, "translations", lang));
|
||||
const json = JSON.parse(str.toString());
|
||||
const str = (await fs.readFile(path.join(__dirname, "translations", lang))).toString();
|
||||
const json = JSON.parse(str);
|
||||
langobj[lang] = json.readableName;
|
||||
fs.writeFile(path.join(__dirname, "dist", "webpage", "translations", lang), str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user