Skip to content

add marketplace and oauth application translations#670

Closed
SychO3 wants to merge 0 commit into
maboloshi:gh-pagesfrom
SychO3:gh-pages
Closed

add marketplace and oauth application translations#670
SychO3 wants to merge 0 commit into
maboloshi:gh-pagesfrom
SychO3:gh-pages

Conversation

@SychO3

@SychO3 SychO3 commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@maboloshi

Copy link
Copy Markdown
Owner

对于main.user.js,main_zh-TW.user.js 单独提取出来
并修复一下冲突 @SychO3

@sebastionai

sebastionai Bot commented Jun 27, 2026

Copy link
Copy Markdown
Pre-merge checks · ✅ 1 · ⚠ 0 · ❌ 0 · ⏭ 2
Check Status Reason
PR title The title clearly describes the specific change being made by naming both features affected.
Description The body is empty and no files were changed so this is treated as trivial.
Linked issue No linked issues were provided to compare against.

@sebastionai

sebastionai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Walkthrough

This pull request adds marketplace and OAuth application translation keys to the GitHub Chinese localisation userscript, covering both simplified and traditional Chinese variants. Alongside the new translations, page-type detection for repository and organisation paths is improved by incorporating regex patterns from the I18N configuration. The Turbo load handler is updated to call updatePageConfig and traverse the document body on each navigation. Time element translation is also adjusted to read from the last child text node rather than the full element text content.

Changes

File Summary
Page type detection main.user.js, main_zh-TW.user.js Repository and organisation detection now additionally tests against rePagePathRepo and rePagePathOrg regex patterns sourced from I18N.conf.
Turbo load handling main.user.js, main_zh-TW.user.js handleTurboLoad now calls updatePageConfig and runs traverseNode over document.body before the existing translation steps.
Time element translation main.user.js, main_zh-TW.user.js transTimeElement now reads text from the last child node when child nodes are present, fixing extraction for elements with mixed content.

🎯 Effort: 3 (Moderate) · ⏱ ~30 minutes

Generated by Sebastion AI · docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants