https://github.com/nriver/zed-translation
Translation for Zed editor. Zed 编辑器 中文适配, 体验优化
https://github.com/nriver/zed-translation
editor i18n translation zed
Last synced: 6 months ago
JSON representation
Translation for Zed editor. Zed 编辑器 中文适配, 体验优化
- Host: GitHub
- URL: https://github.com/nriver/zed-translation
- Owner: Nriver
- License: agpl-3.0
- Created: 2024-06-25T02:45:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-27T06:32:41.000Z (over 1 year ago)
- Last Synced: 2025-03-23T18:05:40.564Z (7 months ago)
- Topics: editor, i18n, translation, zed
- Language: Python
- Homepage:
- Size: 194 KB
- Stars: 27
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌏 Zed Translation
English | 简体中文This repository provides a translation for the awesome [Zed Editor](https://github.com/zed-industries/zed). If you'd
like to translate Zed into any language, please
follow [this guide](https://github.com/Nriver/zed-translation#how-to-translate). Currently, I have translated Zed into
Chinese.Star this repository if you like it, thanks :)
# 🔔 Statement
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
# 🦮 Table of Contents
* [🌏 Zed Translation](#-zed-translation)
* [🔔 Statement](#-statement)
* [🦮 Table of Contents](#-table-of-contents)
* [📸 Screenshots](#-screenshots)
* [📚 How to use](#-how-to-use)
* [🌐 How does the translation work](#-how-does-the-translation-work)
* [🌐 How to translate](#-how-to-translate)
* [🛑 Limitations](#-limitations)
* [💰 Donation](#-donation)
* [🙏 Thanks](#-thanks)---
# 📸 Screenshots
Chinese
# 📚 How to use
1. Download the latest [Release](https://github.com/Nriver/zed-translation/releases) that suits your computer system.
2. Execute it (`zed` for Linux).
3. Enjoy :)---
# 🌐 How does the translation work
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.---
# 🌐 How to translate
First, make sure you can compile Zed. See https://zed.dev/docs/development/linux
Install Python 3.
Install the requirements.
```commandline
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.
```commandline
python3 1.init.py
python3 2.trans.py
python3 3.make_release.py
```You will get the translated Zed executable.
---
# 🛑 Limitations
- 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.# 💰 Donation
Hello! If you appreciate my creations, kindly consider backing me. Your support is greatly appreciated. Thank you!
Alipay:
Wechat Pay:
Ko-fi:
[](https://ko-fi.com/nriver)---
# 🙏 Thanks
Thanks to every developer of the Zed project for creating a great editor.
Thanks to `alerque` for creating linux build scripts on [aur](https://aur.archlinux.org/packages/zed-git).
Thanks for the great IDE PyCharm from JetBrains.
[](https://jb.gg/OpenSource)