Commit 77620b7
committed
Clean up translate.py: remove unused code, fix bugs, simplify
- Remove post-process command (runs automatically after translation)
- Fix json in comment langs (JSON has no comments)
- Extract _extract_comment() helper to eliminate duplication
- Cache git repo, create console per-command (not global)
- Simplify iter_en_docs(), build_translation_prompt()
- Rename regex patterns for consistency (*_RE suffix)1 parent 320333b commit 77620b7
2 files changed
+207
-284
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | 422 | | |
442 | 423 | | |
443 | 424 | | |
| |||
0 commit comments