English | 简体中文
This repository provides a translation for the awesome Zed Editor. If you'd like to translate Zed into any language, please follow this guide. Currently, I have translated Zed into Chinese.
Star this repository if you like it, thanks :)
The Zed Chinese localization version is currently only available through the following channels:
GitHub repository: https://github.com/Nriver/zed-translation
Archlinux AUR repository: https://aur.archlinux.org/packages/zed-cn-bin
- 🌏 Zed Translation
- 🔔 Statement
- 🦮 Table of Contents
- 📸 Screenshots
- 📚 How to use
- 🌐 How does the translation work
- 🌐 How to translate
- 🛑 Limitations
- 💰 Donation
- 🙏 Thanks
- Download the latest Release that suits your computer system.
- Execute it (
zed
for Linux). - Enjoy :)
It downloads the source code from the latest Zed official release and uses regular expressions to replace UI text in each file. Then, it compiles the translated files back into the package. Done.
First, make sure you can compile Zed. See https://zed.dev/docs/development/linux
Install Python 3.
Install the requirements.
pip install -r requirements.txt
If you want to translate it to other languages, copy translations.py
and rename it with the language name,
e.g., translations_cn.py
. Then translate everything in it.
Change the LANG
in settings.py
.
Execute these commands to translate and compile Zed.
python3 1.init.py
python3 2.trans.py
python3 3.make_release.py
You will get the translated Zed executable.
- Some prompt message box fonts are hard-coded and do not follow the font settings. I'll post an issue on Zed.
- I do not have a Mac computer, so I cannot provide a MacOS build. Maybe I'll use GitHub Actions to build it in the future.
Hello! If you appreciate my creations, kindly consider backing me. Your support is greatly appreciated. Thank you!
Thanks to every developer of the Zed project for creating a great editor.
Thanks to alerque
for creating linux build scripts on aur.
Thanks for the great IDE PyCharm from JetBrains.