Skip to content

feat: 阅读设置中的翻译设置移至独立页面 - #41

Merged
zilorn merged 1 commit into
mainfrom
codex/translation-settings-page
Oct 31, 2026
Merged

zilorn merged 1 commit into
mainfrom
codex/translation-settings-page

Conversation

@zilorn

@zilorn zilorn commented Oct 31, 2026

Copy link
Copy Markdown
Owner

解决的问题 / Problem

阅读器的「阅读设置」抽屉内直接嵌入了完整的本书智能翻译配置(显示模式、服务、模型、术语表等),内容较长且与抽屉的轻量设置定位不符,在手机上需要大量滚动。

改动后的行为 / Resulting behavior

  • 「阅读设置」抽屉不再内嵌翻译配置,改为一行「翻译设置」入口,说明为「本书显示模式、翻译服务与术语表」。
  • 点击入口进入独立页面 /book/:id/translation/settings,集中展示本书智能翻译的覆盖项、阅读文本、术语表开关与「恢复全局默认」。
  • 独立页沿用 BookTranslationSettings,并保留「翻译管理」入口;返回键优先回到上一页(从阅读器进入时回到阅读页)。
  • 同步更新 docs/smart-translation.md 与前端技能参考,补充中英文文案。

验证 / Validation

  • 类型检查 / Type check: pnpm exec tsc --noEmit 通过
  • 文案检查 / i18n check: pnpm run i18n:check 通过
  • 前端构建 / Frontend build: pnpm build 通过
  • Rust 测试(如适用)/ Rust tests (if applicable): 不涉及 / N/A
  • 手动验证 / Manual verification: 未执行。当前环境没有可用的浏览器或安卓设备,未实际点击验证手机与 ≥900px 桌面布局;代码路径与构建已验证。

数据与兼容性 / Data and compatibility

不涉及。翻译配置的读取与保存逻辑不变,仅调整入口与展示位置。

提交前检查 / Checklist

  • 已阅读 CONTRIBUTING.md 与 AGENTS.md / I read CONTRIBUTING.md and AGENTS.md.
  • 仅包含本次任务相关文件 / Changes are limited to this task.
  • 已更新相关文档与中英文文案(如适用)/ Relevant docs and both locales are updated where applicable.
  • 已完成适用检查,并说明未验证的部分 / Applicable checks are complete and unverified parts are explained.

@zilorn
zilorn merged commit 552acef into main Oct 31, 2026
3 checks passed
@zilorn
zilorn deleted the codex/translation-settings-page branch October 31, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant