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.
调用OpenAI等服务的接口需要收费,有时进行一些简单的翻译时不需要使用这些服务,因此添加了“默认折叠”功能,逻辑为:
可在服务设置中针对某一服务设置默认展开还是默认折叠:
进行翻译时,默认折叠的服务不会主动进行翻译:
只有手动将其展开时才会进行翻译:
此时:
P.S. 这是个很棒的项目,感谢作者🙏 一个小建议:代码中import路径太长了:
可以考虑在
vite.config.js
中设置resolve.alias
: