v2.10.0
xnx3/translatev2.10.0Dec 14, 2023by xnx3
AI Summary
Introduces whole-page translation control and significantly increases the daily translation quota for public services.
Key Highlights
- Added whole-page translation capability (`translate.whole`).
- Increased daily translation quota from 5M to 20M characters.
- Added downloadable daily translation logs.
New Features
- Whole-page translation control.
- Increased daily translation quota.
- Daily translation log download.
Full Release Notes
1. 2. 增加元素整体翻译能力,增加 translate.whole 用于对整体翻译的控制,提高翻译准确度及对其他语种设置为本地语种的支持。 3. 从 translate.addNodeToQueue () 中抽离出 translate.addNodeQueueItem () ,用于元素整体翻译提供服务 4. translate.nodeQueue 遍历时,增加类型为 function 判断,避免 hash 冒出个 Contains 出来导致 for 中的.length 出错 5. 翻译接口的自助管理后台增加对网站当天的详细翻译日志的下载,可以查看当天有过哪些次翻译、翻译字符多少、翻译为什么语种等详细情况。 6. 翻译接口的每日翻译文字上限优化,如果通过自助翻译后台录入的网站,每日翻译字符上限有五百万字符扩展到两千万字符(当然这全都是免费的) 7. 删除翻译后端的 generateCache 目录 8. translate.service 增加 translate.json 翻译日志的 referer 收集,以方便再自助管理后台进行对自己网站的翻译记录日志的下载 9. translate.service 的 TranslateInterface 接口增加 response 的传入,以便在扩展中对响应进行自定义 10. 公共翻译接口 api.translate.zvo.cn 对翻译接口 translate.json 的 response 响应,增加了当前站点域名日翻译字符数的返回 11. 优化线上公共翻译服务的翻译字数统计方式,有 redis 接管,并统计最近七天的翻译字数记录 12. 优化 translate.service 的 sql 特殊字符过滤