fix: dict voice not exist
This commit is contained in:
@@ -196,7 +196,7 @@ export const apiTranslate = async ({
|
|||||||
break;
|
break;
|
||||||
case OPT_TRANS_GEMINI:
|
case OPT_TRANS_GEMINI:
|
||||||
trText = res?.candidates
|
trText = res?.candidates
|
||||||
?.map((item) => item.content.parts.map((item) => item.text).join(" "))
|
?.map((item) => item.content?.parts.map((item) => item.text).join(" "))
|
||||||
.join(" ");
|
.join(" ");
|
||||||
isSame = text === trText;
|
isSame = text === trText;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user