Discover and explore top open-source AI tools and projects—updated daily.
x6nuxAI-powered localization for code editors
Top 97.7% on SourcePulse
This project provides AI-driven, automated localization for the Zed code editor, specifically targeting Chinese (Simplified and Traditional), Japanese, and Korean languages. It offers a ready-to-use, translated version of Zed, benefiting users who prefer non-English interfaces and developers seeking to integrate Zed into multilingual workflows. The core innovation lies in its fully automated translation and build pipeline, significantly reducing the manual effort required for software internationalization.
How It Works
The project employs an AI-powered translation pipeline that automates the localization process. It begins by scanning Zed's Rust source files to identify translatable strings, primarily those enclosed in double quotes. These strings, along with their code context, are extracted into a JSON format. AI models then translate these strings, featuring a three-level fallback strategy (JSON -> XML CDATA -> numbered format) to ensure translation even if primary methods fail. A critical component is the robust source code replacement mechanism, which includes filtering to avoid breaking syntax, skipping protected regions like byte strings and attribute macros, and automatically correcting punctuation. This ensures the integrity of the Rust codebase during localization.
Quick Start & Requirements
Installation is streamlined across major platforms:
brew tap x6nux/zedg && brew install --cask zedg. For manual installation of unsigned builds, download the DMG and run sudo xattr -rd com.apple.quarantine /Applications/ZedG.app.scoop bucket add zedg https://github.com/x6nux/scoop-zedg && scoop install zedg..tar.gz or .deb packages from the releases page.Local development and building require Python and pip. Installing with pip install ".[ai]" or pip install ".[all]" enables AI translation and full features, respectively. Building Zed itself requires the Rust toolchain (cargo build --release).
Highlighted Details
patch_agent_env.py script that addresses limitations in Zed's original agent server, specifically fixing the handling of API keys like ANTHROPIC_API_KEY and ensuring they are correctly passed to AI models.Maintenance & Community
The repository is maintained by x6nux. No specific community channels (like Discord or Slack) or details on notable contributors or sponsorships are provided in the README.
Licensing & Compatibility
The project is released under the MIT License, which is highly permissive and allows for commercial use, modification, and distribution, including integration into closed-source applications.
Limitations & Caveats
macOS builds are not signed by Apple, necessitating a manual step to bypass the "app is damaged" security warning upon first launch. The project's patch_agent_env.py script implies that the base Zed editor has issues with API key propagation for its AI agent features, which this project rectifies.
3 days ago
Inactive
cluesmith
yetone