mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 16:41:33 +08:00
Every progress line the knowledge log box shows was a hardcoded English string — 22 producers across the initializer, the document adder and the router, rendered verbatim in the UI. #933 added one more ("Describing images: m/n"), which is what surfaced the class. Indexing runs detached from any request, so the backend has no viewer language and the language of record lives in the browser anyway. So the wire now carries the English `{{name}}` template plus its values, and the frontend renders it with `t()` where the language is actually known. `ProgressTracker.update` fills `message` from that same template, so every consumer without i18n of its own — logs, the persisted snapshot, the CLI — reads what it read before, and no call site spells the string twice. Untouched producers keep working: `progressMessage()` falls back to the rendered `message` when no template is named.