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

为什么不能设置谷歌翻译的国内镜像?像“划词翻译”插件里那样? #307

Closed
pendave opened this issue Apr 1, 2023 · 6 comments
Labels
enhancement New update or improvement request

Comments

@pendave
Copy link

pendave commented Apr 1, 2023

一直喜欢把google翻译作为首选,但是你这个用的是官方的啊,我不挂梯子还真用不成。

“划词翻译”插件里就可以设置国内镜像,这样在不开梯子的前提下也能翻译,很爽的!请加入这样的设置。

image

@theowenyoung
Copy link
Contributor

这个当前在开发者设置里,可以手动修改 user config 来实现,目前还没有做界面,因为可能会对普通用户造成困扰。类似这样,可以不填具体路径,如:https://your-domain.com 即可。

"translationServices": {
  "google": {
    "apiUrl":""
  }
}

文档: https://immersive-translate.owenyoung.com/advanced#%E7%BF%BB%E8%AF%91%E6%9C%8D%E5%8A%A1%E9%85%8D%E7%BD%AE

@theowenyoung theowenyoung added the enhancement New update or improvement request label Apr 2, 2023
@pendave
Copy link
Author

pendave commented Apr 13, 2023

这个当前在开发者设置里,可以手动修改 user config 来实现,目前还没有做界面,因为可能会对普通用户造成困扰。类似这样,可以不填具体路径,如:https://your-domain.com 即可。

"translationServices": {
  "google": {
    "apiUrl":""
  }
}

文档: https://immersive-translate.owenyoung.com/advanced#%E7%BF%BB%E8%AF%91%E6%9C%8D%E5%8A%A1%E9%85%8D%E7%BD%AE

我改进去了,保存后它就看不见了,好奇怪

@versun
Copy link
Member

versun commented Apr 23, 2023

@pendave
(插件设置->开发者设置->Edit Full User Config)
找到字段translationServices,添加即可(注意,多个Services直接要有逗号分隔)

"translationServices": {
 "deepl": {
      "authKey": "111010100101"
    },
  "google": {
    "apiUrl":"https://your-domain.com"
  }
}

@versun versun closed this as completed Apr 23, 2023
@angle233
Copy link

angle233 commented May 5, 2023

@pendave (插件设置->开发者设置->Edit Full User Config) 找到字段translationServices,添加即可(注意,多个Services直接要有逗号分隔)

"translationServices": {
 "deepl": {
      "authKey": "111010100101"
    },
  "google": {
    "apiUrl":"https://your-domain.com"
  }
}

翻译失败,感叹号显示cannot read properties of undefined(reading 'class'),使用的https://translate.amz.wang这个镜像

@versun
Copy link
Member

versun commented May 10, 2023

@angle233 我用你给的镜像是可以的,请参考下面的设置自行修改并点击保存
{ "interfaceLanguage": "zh-CN", "updatedAt": "2023-05-10T02:01:11.974Z", "translationService": "google", "translationServices": { "openai": { "APIKEY": "11111111111" }, "google": { "apiUrl": "https://translate.amz.wang" } },

@pendave
Copy link
Author

pendave commented May 18, 2023

是的,很好用的镜像。

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

No branches or pull requests

4 participants