Skip to content

Commit

Permalink
fix(CapsLockX): ignore translation error
Browse files Browse the repository at this point in the history
ignore translation error
  • Loading branch information
snomiao committed Dec 30, 2024
1 parent a7198ef commit 4033e82
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 103 deletions.
6 changes: 4 additions & 2 deletions Core/CapsLockX-i18n.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@ i18n_brainstorm_translatePostResult(lang, key, xhr)
; ignore 500 error
return
}
MsgBox, % xhr.status . " " . xhr.responseText . " " . ("未知错误 / Unknown Error")
; ignore translation error
; MsgBox, % xhr.status . " " . xhr.responseText . " " . ("未知错误 / Unknown Error")
return
}
global transcript := xhr.responseText
if (!transcript) {
MsgBox, fail to ask ai
; ignore translation error
; MsgBox, fail to ask ai
return
}
TrayTip, % "CapsLockX i18n [" . lang . "]", % key "=>" transcript,
Expand Down
Loading

0 comments on commit 4033e82

Please sign in to comment.