|
|
@@ -47,7 +47,7 @@ def process_batch_translations(data: List[List[str]],
|
|
|
# 批量翻译
|
|
|
logger.info("Starting search term translations...")
|
|
|
|
|
|
- if os.getenv('DEBUG', '').lower() in ('true', '1', 't'):
|
|
|
+ if os.getenv('DEBUG', '').lower() in ('true', '1', 'True'):
|
|
|
# DEBUG模式:使用模拟翻译
|
|
|
search_translations = [f"{text} 翻译测试" for text in search_terms]
|
|
|
else:
|