enhance: add a button to clear all git command logs

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-17 16:07:40 +08:00
parent c1e31ac4e3
commit 021aab8408
No known key found for this signature in database
6 changed files with 22 additions and 5 deletions

View file

@ -62,8 +62,7 @@ async function calculateTranslationRate() {
// Add an empty line before the first x:String
xmlStr = xmlStr.replace(' <x:String', '\n <x:String');
await fs.writeFile(filePath, xmlStr, 'utf8');
await fs.writeFile(filePath, xmlStr + '\n', 'utf8');
if (missingKeys.length > 0) {
const progress = ((enUSKeys.size - missingKeys.length) / enUSKeys.size) * 100;