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

插件翻译和自己用Google翻译的结果有出入 #18

Open twinklinggu opened 3 years ago

imlinhanchao commented 3 years ago

比如?

twinklinggu commented 3 years ago

expand while operators have priorities higher than 'limit'

插件-> 展开,而运营商优先于“限制” Google->当运算符的优先级高于 'limit' 时扩展 *

imlinhanchao commented 3 years ago

確認是 Google 接口還需要一個加密的 x-goog-batchexecute-bgr 頭才能得到一些複雜語句的精確翻譯結果,這個需要花些時間研究一下。

shtse8 commented 2 years ago

確認是 Google 接口還需要一個加密的 x-goog-batchexecute-bgr 頭才能得到一些複雜語句的精確翻譯結果,這個需要花些時間研究一下。

有結果嗎? 我也發現是這個header導致

imlinhanchao commented 2 years ago

@shtse8 没有搞定,加密算法太复杂了。:joy:

shinganEuler commented 1 year ago

@imlinhanchao 您好,我PR了支持Google Cloud APIs的翻译api,可以提高翻译质量,麻烦merge一下

https://github.com/imlinhanchao/google-translate-api/pull/2 https://github.com/imlinhanchao/vsc-google-translate/pull/25

shupming commented 1 year ago

js 我找到,不知道怎么用 var c = this.o.Se(b).then(function(d) { d && a.V.set("X-Goog-BatchExecute-Bgr", d); return a }, function() { return a }); return _.ui(c)

this.o.Se(b) $Da.prototype.Se = function(a) { var b = this, c; return .E(function(d) { if (1 == d.g) { if (b.g) return d.Zb(2); c = b; return .C(d, b.i(), 3) } 2 != d.g && (c.g = d.i); return d.return(b.g.Se(a)) }) }

Mrfuhang commented 1 year ago

js 我找到,不知道怎么用 var c = this.o.Se(b).then(function(d) { d && a.V.set("X-Goog-BatchExecute-Bgr", d); return a }, function() { return a }); return _.ui(c)

this.o.Se(b) $Da.prototype.Se = function(a) { var b = this, c; return .E(function(d) { if (1 == d.g) { if (b.g) return d.Zb(2); c = b; return .C(d, b.i(), 3) } 2 != d.g && (c.g = d.i); return d.return(b.g.Se(a)) }) }

aEa.prototype.Se = function(a) { var b = this, c; return .D(function(d) { if (1 == d.g) { if (b.g) return d.Zb(2); c = b; return .C(d, b.i(), 3) } 2 != d.g && (c.g = d.i); return d.return(b.g.Se(a)) }) } 现在变成这样啦