diff --git a/backend/src/plugins/translate/_batch_proc.py b/backend/src/plugins/translate/_batch_proc.py index da8066d4..e5b85435 100644 --- a/backend/src/plugins/translate/_batch_proc.py +++ b/backend/src/plugins/translate/_batch_proc.py @@ -160,6 +160,9 @@ class BatchProcessingService: pre_rows.append(row) continue llm_rows.append(row) + logger.reason("Batch classified", + {"tls": tls, "pre": len(pre_rows), "llm": len(llm_rows), + "total": len(pre_rows) + len(llm_rows)}) return llm_rows, pre_rows def _persist_pre(self, pre_rows, bid, run_id, tls): @@ -190,7 +193,8 @@ class BatchProcessingService: elif cl and lc in cl: fv = cl[lc] else: - fv = row.get("approved_translation", "") + # No translation available — skip this language + continue self.db.add(TranslationLanguage( id=str(uuid.uuid4()), record_id=rec.id, language_code=lc, source_language_detected=detected_lang, translated_value=fv,