Skip to content

Commit

Permalink
chore: translate script log
Browse files Browse the repository at this point in the history
  • Loading branch information
dohooo committed Jun 27, 2022
1 parent a686ff4 commit a98d5c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/makegif.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ async function convertFile(input) {
const baseName = path.basename(input, extName);
if (extName !== '.mov') {
console.error(
`仅支持苹果默认的录屏软件所生成的mov文件 🙆‍♂️\n${input}`
`Only support the mov file generated by the default recording software of Apple 🙆‍♂️\n${input}`
);
reject();
}
console.log(
`文件[${baseName}]开始转换\nSize:${Number(
`File [${baseName}]Being converted.\nSize:${Number(
inputFileInfo.size / 1024000
).toFixed(2)}MB`
);
Expand All @@ -32,7 +32,7 @@ async function convertFile(input) {
gif.on('close', function end() {
const gifInfo = fs.statSync(output);
console.log(
`文件[${baseName}]转换完成\nSize:${Number(
`File [${baseName}]Conversion success.\nSize:${Number(
gifInfo.size / 1024000
).toFixed(2)}MB`
);
Expand All @@ -50,7 +50,7 @@ async function main() {
const isExists = fs.existsSync(sourceFilePath);

if (!isExists) {
console.log('目标目录不存在');
console.log('The directory does not exist');
return;
}

Expand All @@ -73,7 +73,7 @@ async function main() {
} catch (e) {}
}

console.log('任务结束');
console.log('Task finished');
}
}

Expand Down

0 comments on commit a98d5c8

Please sign in to comment.