- 🌍 14 Languages — Chinese, English, Japanese, Korean, French, German, Spanish, Russian, Portuguese, Italian, Arabic, Thai, Vietnamese & more
- 🔍 Auto Detect — Automatically identifies the source language(自动检测源语言)
- 🔄 One-Click Swap — Instantly swap source and target languages
- 📋 Copy to Clipboard — Copy translation results with one click
- 📝 Translation History — Local storage for up to 20 recent translations(本地存储翻译历史)
- ⌨️ Keyboard Shortcut —
Ctrl/Cmd + Enterfor quick translation - 📱 Responsive Design — Works seamlessly on desktop and mobile
- 🔒 Privacy First — API key stored locally, never uploaded to any server
- ⚡ Zero Dependencies — Single HTML file, no build tools, no frameworks
- 🚀 One-Click Deploy — GitHub Pages auto-deployment via GitHub Actions
👉 https://lifa-su.github.io/ai-translator
Bring your own DeepSeek API Key — get one free at platform.deepseek.com
Visit the Live Demo directly — no installation needed!
# Clone the repository
git clone https://github.com/Lifa-su/ai-translator.git
# Open in browser — that's it!
open ai-translator/index.html- Click the ⚙️ API Settings button in the top-right corner
- Enter your DeepSeek API Key(输入你的 DeepSeek API Key)
- Start translating! 🎉
| Layer | Technology |
|---|---|
| Frontend | HTML5 + CSS3 + Vanilla JavaScript |
| AI Engine | DeepSeek Chat API (deepseek-chat) |
| Storage | localStorage (API Key + History) |
| Deployment | GitHub Pages + GitHub Actions |
| Architecture | Single-file SPA, zero dependencies |
ai-translator/
├── index.html # 🎯 All-in-one app (HTML + CSS + JS)
├── .github/
│ └── workflows/
│ └── static.yml # 🚀 GitHub Pages auto-deploy
├── LICENSE # 📄 MIT License
└── README.md # 📖 This file
Yes, the entire app is a single HTML file. Simple is beautiful. ✨
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- 🌐 Add more languages
- 🎨 UI/UX improvements
- 🔧 Support for more AI providers (OpenAI, Claude, etc.)
- 📱 PWA support
- 🌙 Dark mode
This project is licensed under the MIT License.
If you find this project useful, please give it a ⭐!
如果觉得这个项目有用,请给个 Star ⭐ 支持一下!
Made with ❤️ by Lifa-su