Skip to content

fix: 忽略 PR 变更页面文件树的文件夹/文件名翻译#729

Open
wmwlwmwl wants to merge 2 commits into
maboloshi:gh-pagesfrom
wmwlwmwl:gh-pages
Open

fix: 忽略 PR 变更页面文件树的文件夹/文件名翻译#729
wmwlwmwl wants to merge 2 commits into
maboloshi:gh-pagesfrom
wmwlwmwl:gh-pages

Conversation

@wmwlwmwl

@wmwlwmwl wmwlwmwl commented Jul 8, 2026

Copy link
Copy Markdown

PR 变更页面的文件树文件夹名(如 settings)被错误翻译为设置。
在 ignoreSelectorPage 和 ignoreMutationSelectorPage 中添加 span.PRIVATE_TreeView-item-content-text 选择器,忽略文件树中的文件夹/文件名文本,避免被翻译。

PR 变更页面的文件树文件夹名(如 settings)被错误翻译为设置。
在 ignoreSelectorPage 和 ignoreMutationSelectorPage 中添加 span.PRIVATE_TreeView-item-content-text 选择器,忽略文件树中的文件夹/文件名文本,避免被翻译。
@maboloshi

Copy link
Copy Markdown
Owner

只需提交locals.js即可 其他会自动更新

Commit 详情页和 Compare 对比页的文件树文件夹名也会被错误翻译,
在 ignoreSelectorPage 和 ignoreMutationSelectorPage 的 repository/commit 和 repository/compare
中添加 span.PRIVATE_TreeView-item-content-text 选择器以忽略文件树文本。
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.

2 participants