lint fix
This commit is contained in:
parent
da0183a101
commit
2c01c06405
@ -96,6 +96,7 @@ async function processTranslations() {
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const formattedEnData = await prettier.format(JSON.stringify(enData), {
|
||||
parser: "json"
|
||||
});
|
||||
@ -103,6 +104,9 @@ async function processTranslations() {
|
||||
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