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

希望能兼容一下谷歌翻译 API 格式 #8

Open
4285f4 opened this issue Mar 5, 2025 · 6 comments
Open

希望能兼容一下谷歌翻译 API 格式 #8

4285f4 opened this issue Mar 5, 2025 · 6 comments
Labels
enhancement New feature or request

Comments

@4285f4
Copy link

4285f4 commented Mar 5, 2025

如题,如果能兼容谷歌翻译 API 的话,接入别的平台就更方便了,只需要简单修改一下 Base URL 就能用了

@xxnuo
Copy link
Owner

xxnuo commented Mar 5, 2025

收到,预计下个小版本加上

@xxnuo xxnuo added the enhancement New feature or request label Mar 5, 2025
@xxnuo
Copy link
Owner

xxnuo commented Mar 8, 2025

你使用的是什么平台,支持更改 Base URL 的,我测试谷歌翻译的 API 有很多种类型,全都适配的话有些麻烦了

@xxnuo xxnuo marked this as a duplicate of #20 Mar 8, 2025
@Mars-Sea
Copy link

Mars-Sea commented Mar 8, 2025

你使用的是什么平台,支持更改 Base URL 的,我测试谷歌翻译的 API 有很多种类型,全都适配的话有些麻烦了

用jetbrains家的idea,里面有一个翻译插件可以自定义Google翻译api,插件地址:https://plugins.jetbrains.com/plugin/8579-translation

@xxnuo
Copy link
Owner

xxnuo commented Mar 8, 2025

试试新添加的谷歌兼容接口1能用吗 @Mars-Sea

@Mars-Sea
Copy link

Mars-Sea commented Mar 9, 2025

试试新添加的谷歌兼容接口1能用吗 @Mars-Sea

这个插件不行,请求参数不一样,第一张图是请求官方的api,第二张图是请求mtranserver。

Image Image

@4285f4
Copy link
Author

4285f4 commented Mar 9, 2025

你使用的是什么平台,支持更改 Base URL 的,我测试谷歌翻译的 API 有很多种类型,全都适配的话有些麻烦了

抱歉回复晚了,我用的是 Pot,使用那个谷歌兼容接口 v1 同样提示 404 错误

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

No branches or pull requests

3 participants