Markdown Translator
A powerful, aesthetic Markdown editor tailored for content creators, featuring real-time AI translation, beautiful theming, and an intuitive split-screen interface.
Features
- Upload & Edit: Easily upload existing Markdown or text files.
- AI Translation: Seamlessly translate English Markdown to Chinese (preserving format and code blocks) using Google Translate (Free), Google Gemini, or Custom LLMs.
- Smart Remarks: Select text in the preview to add remarks/notes for your review process.
- Beautiful Themes: One-click switching between styles (Emerald, Purple, Blue, Orange, etc.) perfect for WeChat articles or blogs.
- Split-Screen: Real-time writing on the left, rendered preview on the right.
Quick Start
Prerequisites
- Node.js (v18 or higher)
- npm or yarn
Installation
-
Clone the repository:
git clone https://github.com/fanzhidongyzby/markdown-translator.git cd markdown-translator -
Install dependencies:
-
Start the development server:
Access the app at
http://localhost:3000. -
Start the production server:
npm run build && npm run previewAccess the app at
http://localhost:4173.
Docker Environment
-
Build the docker image:
docker build -t markdown-translator . -
Start container:
docker run -d -p 4173:4173 --name markdown-translator markdown-translatorAccess the app at
http://localhost:4173.
Configuration
To use the AI translation features effectively:
- Click the Settings (Gear icon) in the top right.
- Google Translate (Free): No configuration needed.
- Google Gemini: Enter your API Key from Google AI Studio.
- OpenAI / Custom: Configure your own endpoint and Key.
License
Apache 2.0
