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

feat: 直接支持 DeepL 网页 API #56

Open
tisfeng opened this issue Apr 17, 2024 · 6 comments
Open

feat: 直接支持 DeepL 网页 API #56

tisfeng opened this issue Apr 17, 2024 · 6 comments
Assignees

Comments

@tisfeng
Copy link
Owner

tisfeng commented Apr 17, 2024

参见 #44 (comment) ,如果用户没有自定义 DeepL endpoint,就直接调用网页 API,具体实现可以参考 bob-plugin-akl-deepl-free-translate 或者 DeepLX

@so2liu
Copy link

so2liu commented Apr 17, 2024

@tisfeng 我试了一下第一个逆向,是可以跑通的。我之后添加一下deepl的web翻译功能。

另外想问一下我看目前代码里面各个公司的翻译功能都是需要API key/secret的,但是我从商店下载后好像没有配置这个也可以使用,这是为什么呀?

@tisfeng
Copy link
Owner Author

tisfeng commented Apr 17, 2024

商店版其实也需要 key,你看起来不需要是因为之前我内置了一些野生的 DeepL key,但现在这些 key 大部份都已经失效了,所以这个 PR #54 就移除了。

其他翻译服务也类似,少部分是逆向官网网页的 API,剩下的都是内置了我自己的 API key,这些现在都慢慢移除了。

@tisfeng
Copy link
Owner Author

tisfeng commented Apr 17, 2024

这里似乎有个现成的 https://github.com/ifyour/deeplx ,你可以看一下。

@tisfeng
Copy link
Owner Author

tisfeng commented Apr 21, 2024

@so2liu 你好,请问怎么样了?

@so2liu
Copy link

so2liu commented Apr 22, 2024

@so2liu 你好,请问怎么样了?

@tisfeng 目前只理解了一下现有的代码,还没搞,打算今天搞,周末有点儿忙。一定开搞的,请放心

@tisfeng
Copy link
Owner Author

tisfeng commented Apr 22, 2024

ok,你慢慢看。

我对 ts 不熟,当初代码结构都是随便写的,如果你觉得可以改进,欢迎重构优化。

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

2 participants