BUG:拉取请求的“建议更改” UI 不翻译

Open
#582 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
github, javascript

Research direction

Inspect the translation rules for pull request suggestion controls in the userscript. Compare the reported HTML for an unaccepted suggestion with the accepted example, then locate how the visible button text is matched. Update the translation for “Sign off and commit suggestion” and verify it on an open suggestion such as pull request #581.

Written by the indexing model from the issue text.

Description

bug

感谢您提交议题!请补充以下内容,以便我们能更好地协助您:
提交议题前确保您已阅读常见问题(FAQ)

问题/建议的具体描述

“建议更改”相关 UI 不翻译

操作步骤或重现方式(如有带上测试链接)

打开带有未接受的”建议更改“拉取请求即可,例如:#581

若该建议更改已接受,则正常翻译,示例页面:https://github.com/rust-lang/www.rust-lang.org/pull/2228

注:这是截取的网页源码:

未接受的:

<summary data-hydro-click="{&quot;event_type&quot;:&quot;suggested_changes.target.click&quot;,&quot;payload&quot;:{&quot;user_id&quot;:88823709,&quot;target_type&quot;:&quot;apply_suggestion&quot;,&quot;pull_request_id&quot;:null,&quot;relationship_to_suggestion&quot;:null,&quot;originating_url&quot;:&quot;https://github.com/maboloshi/github-chinese/pull/581&quot;}}" data-hydro-click-hmac="6c17587907a934ca911c20dd20e947c8bfb37bec3077639e4d7924a9dae10e7e" data-ga-click="Markdown Toolbar, click, insert code suggestion" data-view-component="true" class="js-apply-suggestion-button btn-sm btn width-full width-sm-auto ml-0 ml-sm-2 mb-2 mb-sm-1">    Sign off and commit suggestion<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-triangle-down ml-2 mr-n1">
    <path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path>
</svg>
</summary>

已接受:

<button data-pull-is-open="false" type="button" disabled="disabled" data-view-component="true" class="js-disabled-apply-suggestion-button tooltipped tooltipped-multiline tooltipped-n btn-sm btn mb-2 mb-sm-1 width-full width-sm-auto" aria-label="该建议已被应用或标记为已解决。">    提交更改<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-triangle-down ml-2 mr-n1">
    <path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path>
</svg>
</button>
预期行为与实际表现
相关截图或附件(如有)

未接受更改

Image

已接受更改

Image
您使用的浏览器类型、脚本管理器及插件版本(不再接受 1.9.2 版本反馈)
  • 浏览器类型:Chrome 129
  • 脚本管理器及插件版本:篡改猴,1.9.3-2025-11-23
Dominant language
JavaScript
Stars
35.1k
Forks
2k
Avg merge
2d 1h
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from maboloshi/github-chinese

All issues in maboloshi/github-chinese

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.