feat: add bidirectional translation support #17
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.
Enhanced translation functionality to support both Chinese-to-English and English-to-Chinese translation directions
Added command-line options --to-english and --to-chinese for explicit direction control
Implemented configurable default translation direction via config command
Updated translation prompts for different directions with specific formatting rules
Added text wrapping for Chinese content to maintain proper formatting Modified AI service interface to accept translation direction parameter Updated documentation with new features and examples
Log: Added bidirectional translation support with configurable direction
Influence:
feat: 添加双向翻译支持
增强翻译功能,支持中译英和英译中双向翻译
添加命令行选项 --to-english 和 --to-chinese 用于显式控制翻译方向
实现可通过配置命令设置默认翻译方向
为不同翻译方向更新提示词,包含特定的格式规则
添加中文文本自动换行以保持格式规范
修改 AI 服务接口以接受翻译方向参数
更新文档,包含新功能和示例
Log: 新增双向翻译支持,可配置翻译方向
Influence:
Fixes: #16