Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

qqxpee/antigravity2-cn

Developer Tools

A Chinese localization pack that patches the Antigravity IDE's Electron interface, menus, and dialogs on Windows and macOS.

2,408
120
JavaScript
MIT
6 months old

What It Does

Antigravity is an Electron-based AI coding IDE. This project provides a Chinese (Simplified and Traditional) localization layer for Antigravity 2.x, covering the editor UI, tooltips, settings panels, system and tray menus, loading screens, updater prompts, and main-process native dialogs. It works by unpacking and validating app.asar, injecting a preload runtime and main-process patches, then atomically replacing the archive after checks. The core binary itself is not modified, and the original app.asar is backed up on first run.

The localization dictionaries live in dicts/ (Simplified) and dicts_tw/ (Traditional) as six JSON files each. The runtime applies them through a table-driven matcher that skips the code editor, terminal, and message content, and reaches into Shadow DOM and sidecar panels.

Getting Started

  1. Install Antigravity v2.35.1 or newer and fully quit it.
  2. Download the ZIP from the green Code button and extract it, or clone the repository (a mirror URL is offered for users in mainland China).
  3. On Windows, double-click 双击安装中文汉化.bat; on macOS, double-click 双击安装中文汉化.command. If double-clicking fails on macOS, run chmod +x *.command first, then allow the app in System Settings → Privacy & Security.
  4. Choose the branding option: keep the English "Antigravity" label, hide it, or show the Chinese brand name. The same choice can be passed from the command line with node localization_engine.js --brand-title english|hidden|translated.
  5. Relaunch Antigravity to see the localized interface.

To revert, quit the app and run 双击卸载还原官方英文.bat or the .command counterpart.

Customizing Dictionaries

Add entries directly to the JSON files, for example "Original English Text": "您的中文翻译", then rerun the install script. The README also suggests asking an AI assistant inside the IDE to patch missing translations by screenshot or text description. For version upgrades, node scripts/dev_tool.js scan-ui and node scripts/dev_tool.js dump-mcp produce diff files under scratch/, which are then merged back into the dictionaries.

Constraints and Known Issues

  • The supported Antigravity version is v2.35.1 and above; newer client releases may change UI strings and require dictionary updates.
  • Node.js is required for ASAR parsing. If it is missing, install an LTS build before rerunning.
  • Windows and macOS are both supported. Windows may require running the .bat as administrator; macOS ad-hoc re-signs the app, which affects auto-update behavior.
  • On Windows, the official silent update overwrites app.asar when the app quits, so the interface returns to English; rerun the install script or use 启动Antigravity(自动检查汉化).bat to check and re-inject before launch.
  • On macOS, re-signing changes the designated requirement and the built-in Squirrel updater rejects official updates. Upgrading requires downloading the latest DMG from the official site and reinstalling, then rerunning the localization script.
  • An optional Windows proxy injection copies version.dll, dbghelp.dll, and config.json from the separate yuaotian/antigravity-proxy project into proxy_config/. Those binaries are not in this repository.
  • The project is MIT licensed.

HotRepo's take

On the JavaScript daily list for 2026-11-25, the project gained 219 stars in a day and reached 11th place in that language ranking, with 2,334 stars and 119 forks overall. The engagement is notable for a localization layer tied to one proprietary IDE, and the README's effort on version-diff tooling and regression tests suggests the maintainers expect the patch to keep tracking upstream releases. That dependency is also the main risk: each Antigravity UI update can invalidate dictionary entries or the injection points.

Project source and documentation

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. sleepy-zone/ai-ref-library-cnA local Chinese search interface for three public AI image reference sets: faces, poses and costumes.JavaScript252
  2. WhiteBr1ck/agy-powertoolsAn Antigravity 2.0 plugin adding Chinese localization, compact chat layout, context and cache meters, session branching, and local usage dashboards.JavaScript103
  3. electron/electronA framework for shipping desktop apps with web technology, aimed at JavaScript developers who want one codebase for macOS, Windows and Linux.C++123,532