给skills提供中文翻译#43
Open
shenSKY wants to merge 7 commits into
Open
Conversation
中国友好:依赖 MyMemory API,但是会有每日500的上限 高效缓存:(前端内存 → 后端内存 → 磁盘文件)三级缓存避免重复翻译,大幅减少 API 调用 可靠清除:一键清除所有层级缓存,UI 即时响应 用户体验:防抖、骨架屏、原文 Tooltip、双语言搜索
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
fix #17 给skills提供了翻译功能
依赖 MyMemory API,但是会有每日500的上限
高效缓存:(前端内存 → 后端内存 → 磁盘文件)三级缓存避免重复翻译,大幅减少 API 调用
可靠清除:一键清除所有层级缓存,UI 即时响应
用户体验:搜索框实现原文 Tooltip、双语言搜索,停留在翻译后的skills上会显示原文
变更类型
影响范围
electron/main/)electron/preload/)src/)测试
npm run typechecknpm testnpm run dev验证功能截图 / 录屏
补充说明
个人测试在环境上不完全,若采纳,请先测试