From 0c5fec0cf999f3c3d50f3d0323f311fdcf03ff26 Mon Sep 17 00:00:00 2001 From: Jean Aurambault Date: Fri, 13 Dec 2024 11:03:13 -0800 Subject: [PATCH] Ai translate only used for batch --- .../box/l10n/mojito/service/oaitranslate/AiTranslateService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/webapp/src/main/java/com/box/l10n/mojito/service/oaitranslate/AiTranslateService.java b/webapp/src/main/java/com/box/l10n/mojito/service/oaitranslate/AiTranslateService.java index cc0014290b..d36483330a 100644 --- a/webapp/src/main/java/com/box/l10n/mojito/service/oaitranslate/AiTranslateService.java +++ b/webapp/src/main/java/com/box/l10n/mojito/service/oaitranslate/AiTranslateService.java @@ -193,6 +193,7 @@ Mono asyncProcessLocale( textUnitSearcherParameters.setRepositoryIds(repository.getId()); textUnitSearcherParameters.setStatusFilter(StatusFilter.FOR_TRANSLATION); textUnitSearcherParameters.setLocaleId(repositoryLocale.getLocale().getId()); + textUnitSearcherParameters.setUsedFilter(UsedFilter.USED); if (tmTextUnitIds != null) { logger.debug( "Using tmTextUnitIds: {} for ai translate repository: {}",