chinese2english/lib
spearzificial e99d4fee26 fix: translate bundles that store Chinese as \uXXXX escapes
dsh-skills-manager rendered its entire UI in Chinese while the plugin
reported success. Its bundle contains no CJK character at all: the bundler
wrote every one as a \uXXXX escape, so `hasChinese(source)` was false and
rewriteScript returned before scanning. 2,835 escaped characters - field
labels, dialogs, errors, the whole plugin - were never candidates.

- src/rewrite.ts: the early-return gate now also accepts an escaped-CJK
  form. Decoding was already correct; only the gate was wrong.
- src/dictionary.residual.json: +150 UI strings measured from the escaped
  bundle, taking the residual dictionary to 1,602 entries.

Also corrects two measurement errors in the previous report. `count()`
used a non-global regex, so match() returned one hit per file rather than
the character count, and a sum over all 81 combo URLs double-counted
shared bundles. Measurement now decodes every literal and dedupes to the
79 single-entry URLs.

Verified over the served bundle set with escapes decoded:
renderable Chinese in string literals 50,399 -> 3,006 (94.04% removed).
The 3,006 remaining characters are all inside CSS comments in two
stylesheets - zero appear outside comments, so no rendered text is
affected. 55 of 78 bundles are rewritten.
2026-10-18 21:01:34 +05:30
..
client.js fix: translate plugin bundles at the transport layer 2026-10-15 22:53:20 +05:30
client.js.map fix: translate plugin bundles at the transport layer 2026-10-15 22:53:20 +05:30
index.js fix: translate bundles that store Chinese as \uXXXX escapes 2026-10-18 21:01:34 +05:30
index.js.map fix: translate bundles that store Chinese as \uXXXX escapes 2026-10-18 21:01:34 +05:30