fix: variable name

This commit is contained in:
Gabe
2025-07-02 13:38:30 +08:00
parent 165da4e559
commit 704ebdc9d7
3 changed files with 9 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ import queryString from "query-string";
import { fetchData } from "../libs/fetch";
import {
OPT_TRANS_GOOGLE,
OPT_TRANS_GOOGLE2,
OPT_TRANS_GOOGLE_2,
OPT_TRANS_MICROSOFT,
OPT_TRANS_DEEPL,
OPT_TRANS_DEEPLFREE,
@@ -261,7 +261,7 @@ export const apiTranslate = async ({
trText = res.sentences.map((item) => item.trans).join(" ");
isSame = to === res.src;
break;
case OPT_TRANS_GOOGLE2:
case OPT_TRANS_GOOGLE_2:
trText = res?.[0]?.[0]||"";
isSame = to === res.src;
break;