diff --git a/src/utils/translation/index.ts b/src/utils/translation/index.ts index b55bf4e2..8064965f 100644 --- a/src/utils/translation/index.ts +++ b/src/utils/translation/index.ts @@ -90,7 +90,7 @@ class Translator { let attempts = 0; const errors: any[] = []; - while (!result && attempts < 3) { + while (!result && attempts < this.serviceCfg.maxRetryCount) { try { result = await this.service.translate( content.text,