chinese2english/scripts
spearzificial e1de66e75a fix: keep translated comments across a rebuild, cover two updated plugins
Checking the live instance a day later showed 2,023 Chinese characters back
in the served bundles, from two causes.

The comment merge rebuilt its dictionary from the scratch files in ~/.cache
only, so the committed translations were never an input. Once a later pass
added comments, a rebuild discarded them: the count stayed at 274 while
eight new translations vanished. src/dictionary.comments.json is now loaded
first and the scratch files overlay it, so a rebuild can only grow the
dictionary.

Two plugins had also shipped new Chinese since the last sweep:
dsh-builtin-browser (a new plugin, 834 characters of settings copy) and
dsh-our-free-model 2.5.4 (1,082 characters, mostly sponsor copy and
comments). Their strings were harvested from the live-served bytes and
translated: 70 UI strings into dictionary.residual.json and 8 comments into
the comment dictionary.

Verified on a fresh instance, escapes decoded: total Chinese across the 79
served bundles 2,023 -> 107, and in the browser both visible text and full
page HTML report 0 CJK. The 107 remaining characters are the functional
regular expressions that match Chinese input, as before.
2026-10-20 15:03:56 +05:30
..
build.mjs fix: translate plugin bundles at the transport layer 2026-10-15 22:53:20 +05:30
measure.mts docs: record the measurement traps and script them 2026-10-18 22:33:30 +05:30
merge-comments.mjs fix: keep translated comments across a rebuild, cover two updated plugins 2026-10-20 15:03:56 +05:30
merge-dict.mjs feat: translate 100% of served UI literals, including template literals 2026-10-18 20:22:35 +05:30
mt-fill.mjs feat: translate 100% of served UI literals, including template literals 2026-10-18 20:22:35 +05:30
served.mjs docs: record the measurement traps and script them 2026-10-18 22:33:30 +05:30