Repository navigation
网页界面、渲染器与分享图按 language 显示中英文(i18n C4) - #267
Merged
Merged
Conversation
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-123840-cdb22d Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-123840-cdb22d Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-123840-cdb22d Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-123840-cdb22d Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-133335-7980ee Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-133335-7980ee Task-Id: VideoTranscriptAPI-20261019-04
|
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
Agent-Executor: grok-pi Agent-Model: grok-4.6 Agent-Effort: high Dispatch-Id: dlg-20261019-151213-2f2138 Task-Id: VideoTranscriptAPI-20261019-04
zj1123581321
marked this pull request as ready for review
October 19, 2026 16:22
Required Gate v2 — 状态面板当前状态:pass · 可合并 当前裁决: PR 累计主审轮(影子):
Gate 历史(v1;来源为持久化
|
| Run | Attempt | Head | 状态 | PR 累计主审轮(影子) | 收件人动作 |
|---|---|---|---|---|---|
| 39269444868 | 1 | 95fad13 |
skipped |
— |
无需动作(主审未跑,绿≠过审) |
| 39276672794 | 1 | 471b05a |
fail |
— |
要修代码 |
| 39276826350 | 1 | 5752ae5 |
fail |
— |
要修代码 |
| 39277099317 | 1 | 9ef32ce |
fail |
— |
要修代码 |
| 39277311283 | 1 | 7708b10 |
fail |
— |
要修代码 |
| 39279154488 | 1 | 90ace5c |
fail |
— |
要修代码 |
| 39279225090 | 1 | 386ae55 |
fail |
— |
要修代码 |
| 39280344011 | 1 | 1c6f34d |
fail |
— |
要修代码 |
| 39280419208 | 1 | 4972baf |
skipped |
— |
无需动作(主审未跑,绿≠过审) |
| 39284944459 | 1 | 4972baf |
pass |
1/5 · collecting |
可合并 |
历史行按 run_id + run_attempt 去重并只增不删;删除本评论后可由 gate_terminal 制品重建。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
C4:网页界面、渲染器与分享图按全局
language(zh-CN | en)显示中英文。设计依据docs/sessions/vta-i18n-261019/design.md「方案要点」6 与「关键不变式」1、4。src/video_transcript_api/i18n/locales/{zh-CN,en}.json;Jinja 经install_i18n提供t()/html_lang()/og_locale();静态页经GET /i18n.js注入web.*子集 +static/js/i18n.js的t/applyI18n。speaker_inference_meta.applied,说话人N/Speaker N正则仅兜底旧数据。floating-toc.js改用data-section定位,不再匹配中文标题。og_card.{lang}.png,旧og_card.png不读取。zh-CN:结果页说话人对话 HTML 与改动前逐字一致(夹具锁死),首页返回原常量。验证
uv run --frozen pytest -q tests/unit/i18n_web tests/unit/webnpm run test:web、npm run test:browser(e2e/tests/i18n.spec.ts含 en 全页面无 CJK 断言,先红后绿)_render_home_html()在 en 下 CJK 片段 0、zh-CN 下 9(判据对照)审查处置
独立审查(Codex,verdict
docs/sessions/vta-i18n-261019/reviews/C4-web-ui-verdict.md,见提交 d66e982)5 项 P2 与 OCR 预扫有效项已在末轮修复:data-section定位,删除按标题文字回退。/i18n.js载荷与首页渲染抽成共用纯函数(i18n.web_catalog_script、utils/rendering/home_page.py),浏览器夹具直接调用,不再复刻。jinja2.Environment.__init__的全局补丁;新增断言生产templates.env含 i18n globals。708352f6代码生成入库(生成脚本tests/tools/generate_zh_cn_baselines.py):首页整份 HTML 逐字;Jinja 页(结果 / 处理中 / 错误 / 清洗稿)按可见文本逐字。已知限制
<script src="/i18n.js">使 HTML 必然不同)。index.html、history.html)zh-CN 快照只锁document.title与关键文本子串,非完整 innerText。🤖 Generated with Claude Code