feat(translator): add official DeepL Pro and Free translation support
xtaodada committed
- Author
- xtaodada · xtao@xtao.deMay 17, 2026 at 13:08
- Committer
- xtaodada · xtao@xtao.deMay 17, 2026 at 13:09
- Parents
- 86b214a442ad
feat(translator): add official DeepL Pro and Free translation support 新增官方 DeepL Pro 和 DeepL Free 翻译服务支持,重构现有 DeepLX 翻译相关代码以提取公共逻辑: 1. 新增 NaConfig 配置项存储两种官方 API 的密钥 2. 新增通用 DeepLOfficialTranslatorBase 基类封装官方 API 调用逻辑 3. 拆分 DeepLXTranslator 并提取公共翻译逻辑到 AbstractDeepLTranslator 4. 在翻译器选择列表中添加官方 DeepL 相关选项 5. 添加对应中文和英文界面字符串资源 6. 在设置页面添加官方 API 密钥配置项 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
11 files changed+290−46