imlinhanchao / vsc-google-translate

A Translate Extension for VSCode
https://marketplace.visualstudio.com/items?itemName=hancel.google-translate
MIT License
108 stars 17 forks source link

谷歌翻译国内版用不了了 #23

Open freysu opened 1 year ago

freysu commented 1 year ago

会提示以下这个内容,可以临时更换翻译引擎吗? translate.google.com.hk 请收藏我们的网址

Translate failed, Error message: 'Response code 404 (Not Found)
Url: https://translate.google.cn/_/TranslateWebserverUi/data/batchexecute?rpcids=MkEWBc&f.sid=&bl=&hl=en-US&soc-app=1&soc-platform=1&soc-device=1&_reqid=9696&rt=c'. Please post an issues for me.
imlinhanchao commented 1 year ago

问题已解决,更新到 1.2.7 可以使用。

imlinhanchao commented 1 year ago

请问问题是否确认解决?

KEMOSAB-E commented 1 year ago

Translate failed, Error message: 'connect ECONNREFUSED 47.240.3.121:443'. Please post an issues for me. 不可以

ben1226q commented 1 year ago

Translate failed, Error message: 'Client network socket disconnected before secure TLS connection was established'. Please post an issues for me. 我报这个错误。

ben1226q commented 1 year ago
image
ben1226q commented 1 year ago

我也是报这个错

zhijie-zhang commented 1 year ago

期待fix

hlskysong commented 1 year ago

vscode 设置: Google-translate: Server Domain 为 https://translate.google.com.hk/ , 需要FQ

imlinhanchao commented 1 year ago

vscode 设置: Google-translate: Server Domain 为 https://translate.google.com.hk/ , 需要FQ

@ben1226q @KEMOSAB-E @zhijie-zhang 目前仅能通过 Google Translate 镜像或设置代理解决。

设置代理方式,按下 Ctrl + , 打开设置。首先将 google-translate.serverDomain 的值修改为 https://translate.google.com.hkhttps://translate.google.com ,然后再修改 http.proxy 值为你的本地代理软件的 HTTP 代理。比如 http://127.0.0.1:1089

zhijie-zhang commented 1 year ago

请问这个代理是在哪里设置? 可否方便提供一下 json源码?

imlinhanchao commented 1 year ago

请问这个代理是在哪里设置? 可否方便提供一下 json源码?

在 setting 里面搜索 http.proxy

MysticDragonfly commented 1 year ago

应该还是需要科学上网的,我设置成自己的端口以后就能用了。在setting.json里面最后填上这个就行,最后一行的代理改成自己的代理地址。 "google-translate.firstLanguage": "en", "google-translate.serverDomain" : "https://translate.google.com.hk", "http.proxy":"http://xxx.0.0.1:xxxx",

aczyt commented 1 year ago

使用WSL应设置为主机局域网地址: "http.proxy":"http://192.168.x.xxx:xxxx",

archonk commented 1 year ago

翻墙后,好像还是不行诶 image

imlinhanchao commented 1 year ago

确认一下你的代理是否可以正常访问到 Google 翻译,另外错误讯息提供一下。

archonk commented 1 year ago

确认一下你的代理是否可以正常访问到 Google 翻译,另外错误讯息提供一下。

可以访问谷歌翻译 image 错误信息


Translate failed, Error message: 'Response code 404 (Not Found) 
Url: [https://translate.google.cn/_/TranslateWebserverUi/data/batchexecute?rpcids=MkEWBc&f.sid=&bl=&hl=en-US&soc-app=1&soc-platform=1&soc-device=1&_reqid=6464&rt=c'](vscode-file://vscode-app/f:/IDE/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/workbench/workbench.html). Please post an issues for me.
imlinhanchao commented 1 year ago

请确认一下你的 扩展版本,是否为最新版本 1.2.7

archonk commented 1 year ago

请确认一下你的 扩展版本,是否为最新版本 1.2.7

更新之后可以了,我以后vscode下载的就是最新版,看了看不是,哈哈,谢谢bro

SpongeBab commented 1 year ago

image

不能使用。公司的网默认就可以访问谷歌,所以我认为我不需要设置代理。但是仍然不能使用。 image

imlinhanchao commented 1 year ago

设置一下 google-translate.serverDomainhttps://translate.google.com

image

不能使用。公司的网默认就可以访问谷歌,所以我认为我不需要设置代理。但是仍然不能使用。 image