Translate Workflow Service 变更

基于 Node.js 的智能翻译服务,通过接入阿里百炼大模型 API 提供高质量的在线文本翻译能力。

变更与信息

  • 2026-03-31 翻译服务全面重构
    • 后端重构 :废弃了旧的翻译工作流与连接方式,全面迁移至阿里百炼 API (DashScope)。
      • 新增 /api/translate POST 路由,接收规范化的 JSON 参数 { q, s, d }
      • 服务端自动构建大模型 Prompt 进行高精度翻译,只返回翻译结果。
    • 前端重构
      • 采用现代化设计风格(类似 DeepL / Google Translate)完全重写了 public/index.htmlpublic/style.css
      • 实现了左右/上下分栏响应式布局,支持源语言和目标语言的快速切换。
      • 添加了一键复制、字符统计、防抖输入自动翻译等提升用户体验的交互功能。
    • 语言支持更新
      • 提取并格式化了最新的支持语言列表(共计 190+ 种语言),包含准确的 ISO-639 代码。
      • 前端通过 languages.js 动态渲染下拉选项,不再硬编码语言列表。

技术栈

  • 后端:Node.js, Express, Axios
  • 前端:原生 HTML/CSS/JavaScript (无框架,极致轻量)
  • 大模型 API:阿里百炼 (DashScope) qwen-plus-latest

  • All rights reserved.
  • No part of this website, including text and images, may be reproduced, modified, distributed, or transmitted in any form or by any means, without the prior written permission of the author.
  • Unauthorized commercial use is strictly prohibited.
  • Unauthorized personal use is strictly prohibited.