tranbox...

This commit is contained in:
Gabe Yuan
2023-10-24 17:58:37 +08:00
parent 4125aba808
commit 02f26af592
9 changed files with 274 additions and 35 deletions

View File

@@ -114,7 +114,7 @@ export const apiTranslate = async ({
OPT_LANGS_SPECIAL[translator].get(fromLang) ??
OPT_LANGS_SPECIAL[translator].get("auto");
const to = OPT_LANGS_SPECIAL[translator].get(toLang);
if (!to) {
if (!text || !to) {
console.log(`[trans] target lang: ${toLang} not support`);
return [trText, isSame];
}