From 9d63404783e5c51f38fc2809dad9aaf92eddf6e4 Mon Sep 17 00:00:00 2001 From: vlOd <66838724+vlOd2@users.noreply.github.com> Date: Mon, 29 Dec 2025 00:17:08 +0200 Subject: [PATCH] Update src/utils/translation/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/utils/translation/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/translation/index.ts b/src/utils/translation/index.ts index 249d9401..a50ea57c 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,