A localized translation tool based on Python + Flask + PyWebView, offering a native Mac app-like experience.
- MacOS Style UI: Dark frosted glass texture, immersive experience.
- Markdown Editor: Integrated EasyMDE, supports split-pane real-time preview.
- Extensible: Backend based on Flask, easily integrates with OpenAI / DeepL / Baidu Translate APIs.
- Backend: Python, Flask
- GUI: PyWebView (WebKit)
- Frontend: HTML5, CSS3, EasyMDE, Marked.js, KaTeX
- Build Tool: PyInstaller
-
Clone the repository:
git clone https://github.com/yujingyao-dev/MarkdownTranslator cd MarkdownTranslator -
Install dependencies:
pip install -r requirements.txt
-
Add your personal Google genai api key at .env
-
Run:
python app.py
Mac users can execute the following command to generate the .app file:
pyinstaller --name "MarkdownTranslator" \
--windowed \
--add-data "templates:templates" \
--add-data "static:static" \
--clean \
--noconfirm \
app.pyDistributed under the MIT License. See LICENSE for more information.
- I thank my father and mother, who give birth to me.
- I thank Nanyang Technological University, who provides with a chance to try.
- I thank Google Gemini 3 Pro, who assists my programming.
