Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我增加了DeepLX的翻译服务 #224

Open
zj1016 opened this issue Jun 21, 2024 · 8 comments
Open

我增加了DeepLX的翻译服务 #224

zj1016 opened this issue Jun 21, 2024 · 8 comments

Comments

@zj1016
Copy link

zj1016 commented Jun 21, 2024

Deeplx Comment Translate

@intellism
Copy link
Owner

👍🏻

@lc6464
Copy link

lc6464 commented Jul 17, 2024

建议添加在 vscode 扩展市场中添加 translateSource 的 Tag,不然难以找到,我也是翻 Issues 才翻到的。

@zj1016
Copy link
Author

zj1016 commented Jul 17, 2024 via email

@lc6464
Copy link

lc6464 commented Jul 17, 2024

从半小时短暂的为了体验而进行的体验的效果来看,工作是正常的。

至于建议:

  1. 可以加入自动上下文功能,比如说加上文本前后的其他注释、代码之类的内容,而不是固定一个上下文。
  2. 建议 deeplxTranslate.contents 默认为空
  3. 建议加入跟随 commentTranslate.targetLanguage 作为目标语言自动判断源语言类型的功能

@zj1016
Copy link
Author

zj1016 commented Jul 18, 2024 via email

@zj1016
Copy link
Author

zj1016 commented Jul 18, 2024 via email

@intellism
Copy link
Owner

intellism commented Jul 22, 2024

我尝试 :“跟随 commentTranslate.targetLanguage 作为目标语言和自动判断源语言类型” 但是发现 targetLanguage的枚举值与 deeplx API的参数不适配 比如 ZH_CN 在deeplx里必须用ZH 如果要多语言适配要针对每个语言进行判断赋值 所以我又恢复了 这两个选项 让用户自定义语言

________________________________ 发件人: @.*** @.> 代表 LC @.> 发送时间: 2024年7月17日 06:43 收件人: intellism/vscode-comment-translate @.> 抄送: ZJ @.>; Author @.> 主题: Re: [intellism/vscode-comment-translate] 我增加了DeepLX的翻译服务 (Issue #224) 从半小时短暂的为了体验而进行的体验的效果来看,工作是正常的。 至于建议: 1. 可以加入自动上下文功能,比如说加上文本前后的其他注释、代码之类的内容,而不是固定一个上下文。 2. 建议 deeplxTranslate.contents 默认为空 3. 建议加入跟随 commentTranslate.targetLanguage 作为目标语言和自动判断源语言类型的功能 ― Reply to this email directly, view it on GitHub<#224 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOE5ITOVYP3LUH47GHQB6DLZMZYHZAVCNFSM6AAAAABJWGOWAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTGM3DEMBSGY. You are receiving this because you authored the thread.Message ID: @.>

comment translate有一套默认值,是采用google的标准。。你可以在你翻译源插件里做一个映射。
可以参考 https://github.com/intellism/deepl-translate/blob/master/src/deepLTranslate.ts#L11

@zj1016
Copy link
Author

zj1016 commented Jul 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants