stormzhang

AI translate tool for Claude Code, Codex, OpenCode & Cursor. One-line install, multi-language support with speech.

16
2
100% credibility
Found May 05, 2026 at 16 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Shell
AI Summary

ai-translate is a simple add-on for AI coding tools that lets users translate words, phrases, or sentences between Chinese and other languages directly in their workspace, with optional speech playback.

How It Works

1
🔍 Find the translation helper

While working in your AI coding app and needing to understand a tricky word, you discover ai-translate, a simple tool that brings translations right inside your workspace.

2
📥 Run the quick setup

Copy one easy line and paste it into your computer's command spot, and it downloads everything you need.

3
âś… It spots your coding app

The tool automatically finds your favorite AI coding helper and adds the translation feature perfectly, asking if you want to update if it's already there.

4
đź’¬ Type to translate

In your coding app, simply type /t followed by any word or phrase, like /t run, and get clear meanings, examples, and Chinese translations instantly.

5
🔊 Add voice for pronunciation

Use /ts instead to hear the word spoken aloud by your computer after seeing the translation, helping you learn how it sounds.

🎉 Translate effortlessly while coding

Now you can understand English coding terms or translate to Chinese on the fly without switching apps, making your coding sessions smoother and more fun.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 16 to 16 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ai-translate?

ai-translate is a shell script that installs translation commands into AI coding tools like Claude Code, Codex, OpenCode, Cursor, and Windsurf with one curl | bash line. It lets you type /t word (or $t in Codex) for instant AI-powered bilingual translation—Chinese to English or any language to Chinese—right in your tool, powered by its built-in LLM. Use /ts for the same plus text-to-speech playback via system voices.

Why is it gaining traction?

Zero setup beyond the install: no APIs, no deps, just prompts that tap the LLM you already have. Stands out with polysemy support (up to five meanings per word), auto-language detection, markdown formatting, and context-aware explanations for tool-specific terms like "hook." The TTS for pronunciation seals it for quick, hands-free learning without leaving your editor.

Who should use this?

Bilingual devs in AI coding setups, like Chinese engineers debugging English docs in Cursor or Claude Code. Suited for on-the-fly lookups of technical terms, sentences from READMEs, or commands—think frontend folks translating API refs or backend coders practicing pronunciations during late-night sessions.

Verdict

Grab it via one-liner if you run supported tools; clean docs and multi-platform TTS make it practical despite 16 stars and 1.0% credibility score signaling early maturity. Test speech on non-macOS first—solid niche win for workflow tweaks.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.