Add dummy line THE END

This commit is contained in:
2026-03-05 17:47:54 +08:00
parent 323d14301d
commit f161e29c7e
11 changed files with 64 additions and 14 deletions

View File

@@ -247,6 +247,12 @@ def translate_file(input_path: Path, client: OpenAI, model: str) -> Path:
skipped_count += 1
continue
# Skip dummy "THE END" line (added by step 2 for timing purposes)
if english.strip() == "THE END":
line_data["chinese"] = english # Keep as-is
skipped_count += 1
continue
cached = get_cached_translation(english)
if cached:
line_data["chinese"] = cached