detect lang remote

This commit is contained in:
Gabe Yuan
2023-10-10 18:03:05 +08:00
parent 5af66204c4
commit 5cd6977a6e
5 changed files with 77 additions and 6 deletions

View File

@@ -421,7 +421,7 @@ export class Translator {
try {
addLoading(node, loadingId);
const deLang = await tryDetectLang(text);
const deLang = await tryDetectLang(text, true);
if (deLang && toLang.includes(deLang)) {
return;
}