Commit Graph
2 Commits
Author SHA1 Message Date
LeoVasanko 42609a54c1 import_translation: read the input file outside the event loop (ruff ASYNC230/SIM115) 2026-09-20 23:47:28 +00:00
LeoVasanko 277a75ae23 scripts/import_translation.py: import human-made whole-article translations
Decomposes a pasted full translation with the same align_article
validation as article-mode LLM results and stores proper Data.trans
fragments, instead of the translation editor's one monolithic patch that
silently goes stale hunk by hunk. Runs against the kanta database
directly, with the server stopped. Verified on a scratch copy of the
localhost db: swe/app fi (qwen3.8 trial output) imports 43/43 blocks and
serves through the hybrid; the degenerate qwen3-next output is rejected
on anchor validation.
2026-09-20 23:23:37 +00:00