feat: highlight fav words && split long paragraph

This commit is contained in:
Gabe
2025-10-19 00:19:47 +08:00
parent b6ff4aae6a
commit 2325155b1e
7 changed files with 402 additions and 7 deletions

View File

@@ -919,7 +919,7 @@ export const handleTranslate = async (
httpTimeout,
});
if (!response) {
throw new Error("tranlate got empty response");
throw new Error("translate got empty response");
}
const result = await parseTransRes(response, {
@@ -934,7 +934,7 @@ export const handleTranslate = async (
...apiSetting,
});
if (!result?.length) {
throw new Error("tranlate got an unexpected result");
throw new Error("translate got an unexpected result");
}
return result;