中文导出的分盘宫位列表改用中文星座名,英文列表仍用英文星座名。

Co-Authored-By: Grok (agent loop)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jesse-ux
2026-10-22 16:22:54 +08:00
co-authored by Grok (agent loop) Cursor
parent 4020c3958a
commit 5aaae4690c
5 changed files with 38 additions and 4 deletions
+16
View File
@@ -37227,3 +37227,19 @@
- 相关记录:BUG-1312、BUG-1413、BUG-1414。issue #91。
- 复发自:BUG-1312。旧的回译路径还在,短词表盖不住新句子。
- 修复版本:分支 `codex/full-data-parity-1-20261021`。
## BUG-1417 | 中文导出的分盘宫位列表印英文星座名
- 状态:resolved
- 首次发现:2026-10-21
- 最近更新:2026-10-22
- 影响面:个人报告导出 Markdown 里的分盘宫位文字列表。
- 用户现象:中文导出写成「第 1 宫 · Leo:……」。英文导出的星座名本来就是英文,没有这个问题。
- 触发条件:导出报告里勾选分盘。图盘文字列表由 `chartBlockText` 生成。
- 根因:`report-export-blocks.ts` 的 `houseLine` 中文分支直接使用 `house.sign`。`toNorthIndianChart` 给出的是英文星座名。
- 修复:中文列表改用 `SIGN_ZH`(白羊、金牛……,不带「座」)。英文列表仍用英文星座名。
- 验证:`frontend/tests/report-export-blocks.test.ts`。中文列表不含英文星座名,英文列表含。
- 防复发:该测试同时断言中文不含英文星座名、英文仍含英文星座名。
- 相关记录:BUG-1312。issue #91。
- 复发自:无。
- 修复版本:分支 `codex/full-data-parity-1-20261021`。