Skip to content

fix(WTRLAB): load novel terms glossary and fix untranslated Chinese terms (#2228) - #2269

Closed
7ui77 wants to merge 2 commits into
lnreader:masterfrom
7ui77:master
Closed

7ui77 wants to merge 2 commits into
lnreader:masterfrom
7ui77:master

Conversation

@7ui77

@7ui77 7ui77 commented Jun 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2228.

Summary of Changes

  • Load novel glossary terms from /api/v2/reader/terms/${rawId}.json in wtrlab.ts.
  • Pre-replace and post-replace Chinese terms to prevent untranslated Chinese characters.
  • Add common webnovel terms fallback replacement (e.g. 异兽 -> Strange Beast, 宠兽 -> Pet Beast, etc.).
  • Add spacing lookbehind (?<=[a-zA-Z0-9\-]) to format mixed English-Chinese term replacements properly (e.g. dragonfly-type Strange Beast).
  • Retain login notification warning when AI translation falls back to Web translation.

@7ui77 7ui77 changed the title feat(wtrlab): convert to PagePlugin and fix chapterCount parsing fix(WTRLAB): load novel terms glossary and fix untranslated Chinese terms (#2228) Jul 20, 2026
@7ui77

7ui77 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

@K1ngfish3r Can you help me check this PR?

@K1ngfish3r

Copy link
Copy Markdown
Collaborator

Common terms is incorrect

@7ui77 7ui77 closed this Jul 21, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WTR-LAB: Some chapters have chinese characters

2 participants