Skip to content

xr843/Buddhist-AI-Translator

Repository files navigation

慧译通 | Buddhist AI Translator

专业佛教文献 AI 翻译平台 | Professional Buddhist Text AI Translation Platform

GitHub Stars GitHub Forks License Live Demo

English | 中文

Buddhist AI Translator Interface

项目简介

慧译通是一款专为佛教文献翻译设计的 AI 翻译平台。结合 DeepSeek 大语言模型与专业佛学术语库,为学者、修行者和佛学爱好者提供准确、专业的多语种翻译服务。

核心特性

特性 说明
AI 智能翻译 DeepSeek API 驱动,深度理解佛学语境
18 种语言 梵文、巴利文、藏文、文言文、现代中文、英文等
50+ 术语库 内置专业佛教术语数据库,确保翻译准确性
语音功能 语音输入 + 多语言朗读,支持分段高亮
零依赖 纯前端实现,无需后端,直接浏览器运行

支持语言

  • 古典语言: 梵文 (Devanagari/Harvard-Kyoto)、巴利文、藏文、文言文
  • 现代语言: 中文、英文、日文、韩文、法文、德文、西班牙文、葡萄牙文、意大利文、荷兰文、俄文、阿拉伯文

快速开始

在线使用: https://xr843.github.io/Buddhist-AI-Translator

本地部署:

git clone https://github.com/xr843/Buddhist-AI-Translator.git
cd Buddhist-AI-Translator
# 直接在浏览器中打开 index.html

配置 API:

  1. 访问 DeepSeek 开放平台 获取 API 密钥
  2. 点击界面右上角设置按钮
  3. 输入 API 密钥并保存

键盘快捷键

快捷键 功能
Ctrl + Enter 执行翻译
Ctrl + Shift + C 复制翻译结果
Ctrl + Shift + V 粘贴文本
Ctrl + Shift + X 清空输入

技术栈

Frontend: HTML5 + CSS3 + JavaScript ES6+
AI Engine: DeepSeek API
Icons: Font Awesome 6.0
Fonts: Google Fonts (Noto Sans SC/Serif SC)
Speech: Web Speech API

佛教术语数据库

内置经典术语翻译对照,涵盖:

  • 心经术语: 般若波罗蜜多、观自在菩萨、五蕴皆空...
  • 基础概念: 三宝、四谛、八正道、无常、无我、涅槃...
  • 唯识学派: 阿赖耶识、八识、三性...
  • 中观学派: 中道、空性、缘起、二谛...
  • 净土/禅宗: 阿弥陀佛、念佛、顿悟、明心见性...

English

About

Buddhist AI Translator is a specialized AI-powered translation platform designed for Buddhist texts. Combining DeepSeek's large language model with a professional Buddhist terminology database, it provides accurate, scholarly translations across 18 languages.

Key Features

Feature Description
AI Translation Powered by DeepSeek API with deep Buddhist context understanding
18 Languages Sanskrit, Pali, Tibetan, Classical Chinese, Modern Chinese, English, etc.
50+ Terms Built-in professional Buddhist terminology database
Voice Support Speech input + multi-language text-to-speech with segment highlighting
Zero Dependencies Pure frontend, no backend required, runs directly in browser

Supported Languages

  • Classical: Sanskrit (Devanagari/Harvard-Kyoto), Pali, Tibetan, Classical Chinese
  • Modern: Chinese, English, Japanese, Korean, French, German, Spanish, Portuguese, Italian, Dutch, Russian, Arabic

Quick Start

Online Demo: https://xr843.github.io/Buddhist-AI-Translator

Local Deployment:

git clone https://github.com/xr843/Buddhist-AI-Translator.git
cd Buddhist-AI-Translator
# Open index.html in your browser

API Configuration:

  1. Get API key from DeepSeek Platform
  2. Click settings button in the top-right corner
  3. Enter and save your API key

Keyboard Shortcuts

Shortcut Action
Ctrl + Enter Translate
Ctrl + Shift + C Copy result
Ctrl + Shift + V Paste text
Ctrl + Shift + X Clear input

Project Structure

Buddhist-AI-Translator/
├── index.html          # Main page
├── styles.css          # Stylesheet
├── script.js           # Core logic & AI integration
├── README.md           # Documentation
├── CONTRIBUTING.md     # Contribution guidelines
├── LICENSE             # MIT License
└── image/              # Screenshots

Browser Compatibility

Browser Version Status
Chrome 90+ Full Support
Firefox 85+ Full Support
Safari 14+ Full Support
Edge 90+ Full Support

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

  • Add Buddhist terminology translations
  • Improve UI/UX
  • Add language support
  • Fix bugs and issues
  • Improve documentation

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

Translation results are for reference and learning purposes. For important Buddhist scholarly research, please:

  • Consult professional Buddhist scholars
  • Cross-reference authoritative texts
  • Consider cultural and historical context

愿以此功德,普及于一切。我等与众生,皆共成佛道。

May this merit extend universally to all, so that we and all sentient beings together may attain Buddhahood.

Star History Chart


Made with ♡ for Buddhist Studies

Releases

No releases published

Packages

 
 
 

Contributors