Add dummy line THE END
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user