qmetrics.net

github-chinese

Userscript localization of the GitHub web interface

github-chinese screenshot

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

Tags

Similar software

i18next

JavaScript internationalization and translation framework

i18next loads and applies translation files in browser, Node.js, and Deno apps. It handles plurals, context, nesting, variables, backends, caching, and language detection.

  • Runtime and build-time translation
  • Plural and context rules
  • Backend translation loading
JavaScriptWeb, CLIDetails →
★ 8.7k⟳ todayMIT

Argos Translate

Open-source offline neural machine translation for Python

Argos Translate is a Python library for offline translation using installable language model packages.

  • Offline Python translation API
  • Installable .argosmodel language packages
  • Command-line translation interface
PythonLinux, Windows, CLIDetails →
★ 6.7k⟳ 5 days agoMIT · open core

JS Lingui

Compile-time i18n macros for JavaScript and TypeScript

Lingui is a lightweight internationalization library with compile-time macros and a CLI. It targets React, React Native, Vue, SolidJS, Astro, Svelte, and plain Node with PO catalog extraction.

  • Compile-time Trans macros for UI text
  • CLI extract and compile PO catalogs
  • React, Vue, Solid, and React Native packages
TypeScriptCLIDetails →
★ 5.9k⟳ 15 days agoMIT

Python Pinyin

Chinese hanzi to pinyin conversion library

python-pinyin (pypinyin) converts Chinese characters to phonetic pinyin for notation, sorting, and search. It handles heteronyms and multiple romanization styles.

  • Phrase-aware pinyin mapping
  • Heteronym support
  • Multiple romanization styles
PythonDetails →
★ 5.4k⟳ 1 month agoMIT

Globalize

CLDR-based JavaScript internationalization library

Globalize formats and parses numbers, dates, and messages using official Unicode CLDR JSON data. It runs in browsers and as a Node.js module with modular feature packages.

  • Unicode CLDR JSON locale data
  • Number, currency, and percent formatting
  • Date and time parsing and display
JavaScriptWebDetails →
★ 4.8k⟳ 17 days agoMIT

ngx-translate

Runtime internationalization library for Angular applications

@ngx-translate/core adds dynamic translations to Angular apps. It loads language files at runtime, switches locales without reload, and supports pipes, directives, and signal-based APIs.

  • Runtime language switching
  • Signal-based translation state
  • Standalone translate() signal API
TypeScriptDetails →
★ 4.7k⟳ yesterdayMIT