Skip to content

Commit e4eaa7e

Browse files
author
sheepzh
committed
Fix npe of source
1 parent e5e58a9 commit e4eaa7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/crowdin/common.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export async function mergeMessage(
101101
return
102102
}
103103
const sourceText = sourceItemSet[path]
104+
if (!sourceText) {
105+
// Deleted key
106+
return
107+
}
104108
if (!checkPlaceholder(text, sourceText)) {
105109
console.error(`Invalid placeholder: dir=${dir}, filename=${filename}, path=${path}, source=${sourceText}, translated=${text}`)
106110
return

0 commit comments

Comments
 (0)