Google Antigravity Speaks Chinese: A One-Line Launcher for UI and Thinking-Language Localization
【Open-Source Tool】How to Set Google Antigravity to Chinese? A Lossless Dual-Entry Localization Solution for Mac / Windows
Effect Demo
Open-source repo: https://github.com/guuguo/antigravity-zh-launcher
Foreword
Lately the Gemini 4 family of models has been climbing the coding and complex reasoning leaderboards, so I switched my primary coding workbench to Google Antigravity Desktop.
It works smoothly, but with heavy daily conversation usage, two small annoyances keep getting under my skin:
- The interface itself is all English, including the welcome text for new sessions, the input placeholder, the
8m agoat the end of messages, and even the automatically generated English session title at the top; - Relying only on a global rule to ask for "answers in Chinese" doesn't fully work. The model's internal Thinking process still frequently drifts into English, and hard-coding a global rule also pollutes the English workspace I normally keep handy.
I also looked at the common approach online of unpacking and replacing the asar archive. Aside from having to re-apply the patch after every minor official update, on macOS changing the package directly invalidates the code signature, causing system permission popups to keep nagging.
But I'm lazy~~~
I just want an extra, independent 「Antigravity 中文」 icon on my desktop: click it to get full Chinese flow (interface + execution chain + thinking + titles), click the original Antigravity icon to stay 100% original English, and never have them bleed into each other.
So I packaged the whole solution into a one-line command and open-sourced it.
Getting and Installing (One Line for Mac / Windows)
The full installation script, SHA-256 verification notes, source code, and advanced usage live in the GitHub repo (supports macOS Terminal / Windows PowerShell one-line installation and also one-line complete uninstall):
👉 Get the one-command install script & source on GitHub (a Star ⭐️ is welcome): https://github.com/guuguo/antigravity-zh-launcher
How to use it after install:
- Want Chinese: just open the 「Antigravity 中文」 in the desktop or applications folder (interface, execution step chain, timestamps, input hints, session titles, and the AI thinking process are all in Chinese).
- Want English: use the original Antigravity icon as usual, completely unaffected. Exit Chinese mode and it automatically restores to the default state.
Highlights and Core Implementation Ideas
This launcher doesn't just slap on a word list. It weaves "filling UI gaps" and "thinking-language syncing" into one complete chain:
CDP dynamic injection + enhanced overlay script (zero-intrusion, no signature breaking) Under the hood it builds on the open-source community's yuexps/Antigravity-Hans (with strict verification against the official
SHA256SUMSat install time), injecting the localization via the Chrome DevTools Protocol at runtime without touchingapp.asaror breaking the code signature. At the same time, it layers an enhanced overlay script via--trust-external-overlayto fill in the details a plain word list often misses:- Automatic Chinese titles: generate a concise title from the first Chinese question and replace the English auto-titles at the top breadcrumb and in the history list;
- Input placeholder and welcome text: covers
Ask anything, @ to mention, / for actionsand several carousel welcome messages; - Compact relative time: localize
8m ago/45s ago/Just nowin the message toolbar and user action bar to8分钟前/45秒前/刚刚, while strictly skipping message body content to avoid false positives.
UI localization + Chinese thinking dual linkage, auto-restore on exit A standards-compliant plugin
antigravity-zh-promptis placed in~/.gemini/config/plugins/and defaults toenabled: false. Only when launched through the 「Antigravity 中文」 entry does the launcheragy-zhautomatically enable it; once the session exits or the monitor stops, it immediately writes backfalse, ensuring the original English entry stays clean with no cross-contamination.MacOS / Windows native-experience polish
- macOS: creates an independent app bundle
Antigravity 中文.appand isolates the debug-port process from the original app. - Windows: uses
wscript.exeto launch the no-window launcheragy-zh-launch.vbsthat runs the background script, eliminating the terminal black-flash when double-clicking the shortcut; before launch it automatically enumerates windows via Win32 to identify same-session processes, cleans up hidden background leftovers before relaunching, and when a visible original window exists it pops a system confirmation box for the user to decide whether to restart.
- macOS: creates an independent app bundle
Optional command-line control After installation, an
agy-zhcommand is available. If you prefer the terminal, runagy-zh statusto see the state of both entries and the plugin switch, or useagy-zh stop/agy-zh build-overlayto manage running and overlay scripts.
Wrapping Up
The overall idea isn't complicated: it just pulls "don't modify the original package", "fill UI gaps", and "isolate the Chinese-thinking prompt" together into one convenient icon.
I use it every day for coding, and I've also cleaned up both the scripts for both platforms and open-sourced them. If you've also been using Antigravity heavily to run Gemini 4 recently, I hope this little tool saves you some hassle~
Project source and latest install command: https://github.com/guuguo/antigravity-zh-launcher (if it helps you, a Star ⭐️ on GitHub is welcome~)