GitHub 中文化插件 translates GitHub’s English UI into Chinese using a maintained dictionary and regex rules. It runs as a browser userscript with optional machine translation for repository descriptions.
Overview
GitHub 中文化插件 is a localization layer for the GitHub website. It rewrites interface text such as menus, titles, and buttons into Chinese, with separate support for simplified and traditional Chinese word lists that are updated on a regular schedule.
Matching combines static dictionaries with regex rules tuned per page type so navigation stays accurate as GitHub changes layout. It can translate repository descriptions via a remote translation service, localize relative time elements when the browser is set to Chinese, and watch dynamic page updates so single-page navigation and Turbo-driven views stay translated.
Installation is through common userscript managers on Chrome, Chromium, Firefox, Safari, and Android Via, and there is also a VS Code integrated-browser extension. Stable builds are distributed on GreasyFork while development builds track the main script source more closely.
Advanced users can point the script at a local dictionary file for debugging. The project evolved from earlier GitHub Chinese localization work and continues to adapt to React-based navigation, security fixes, and performance improvements for large pages.
Key features
- Chinese UI translation for GitHub pages
- Regex and per-page dictionary matching
- Repository description machine translation
- Automatic relative-time localization
- MutationObserver updates for dynamic views
- Tampermonkey and Violentmonkey support
- VS Code browser extension variant
- Toggle for regex-based translation
Use cases
- Reading GitHub in Chinese
- Onboarding Chinese-speaking developers to GitHub
- Consistent terminology via shared word lists
- Local dictionary testing and contribution
- Using GitHub in VS Code’s simple browser