Skip to content

Commit db96fb7

Browse files
committed
enhance translation quality
1 parent d4c1640 commit db96fb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (pair) {
2828
// auto
2929
// language detect
3030
translator
31-
.translate(g_config.input, {from: g_config.from.lang, to: g_config.to.lang, domain: g_config.domain})
31+
.translate(g_config.input, {from: g_config.from.lang, to: g_config.to.lang, domain: g_config.domain, client: 'gtx'})
3232
.then(function (res) {
3333
var detect = res.from.language.iso;
3434
if (pair[0] === detect) {
@@ -57,7 +57,7 @@ function doTranslate() {
5757
//文档上说cmd+L时会找largetype,找不到会找arg,但是实际并不生效。
5858
//同时下一步的发音模块中query变量的值为arg的值。
5959
translator
60-
.translate(g_config.input, {from: g_config.from.lang, to: g_config.to.lang, domain: g_config.domain})
60+
.translate(g_config.input, {from: g_config.from.lang, to: g_config.to.lang, domain: g_config.domain, client: 'gtx'})
6161
.then(function (res) {
6262
var items = [];
6363

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alfred-google-translate",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"description": "Alfred 3 workflow to translate with google translate api",
55
"license": "MIT",
66
"repository": "xfslove/alfred-google-translate",

0 commit comments

Comments
 (0)