lint fix
This commit is contained in:
parent
da0183a101
commit
2c01c06405
@ -96,13 +96,17 @@ async function processTranslations() {
|
||||
}
|
||||
}
|
||||
|
||||
const formattedEnData = await prettier.format(JSON.stringify(enData), {
|
||||
parser: "json"
|
||||
});
|
||||
try {
|
||||
const formattedEnData = await prettier.format(JSON.stringify(enData), {
|
||||
parser: "json"
|
||||
});
|
||||
|
||||
fs.writeFileSync(oldLangFile, formattedEnData, "utf-8");
|
||||
logger.info("Updated old_en.json with the latest translations.");
|
||||
process.exit(0);
|
||||
fs.writeFileSync(oldLangFile, formattedEnData, "utf-8");
|
||||
logger.info("Updated old_en.json with the latest translations.");
|
||||
process.exit(0);
|
||||
} catch (error) {
|
||||
logger.error("Error during the formatting or writing of old_en.json:", error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
processTranslations();
|
||||
void processTranslations();
|
||||
|
Loading…
x
Reference in New Issue
Block a user