From ecd1044de731c585b374c2ff28b33c70e53cdbb7 Mon Sep 17 00:00:00 2001 From: will wade Date: Fri, 1 Nov 2024 08:55:58 +0000 Subject: [PATCH] make translate default off --- nodejs/sender-monitor/config.json | 2 +- nodejs/sender-monitor/package-lock.json | 14 ++++++++++++++ nodejs/sender-monitor/package.json | 8 ++++---- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/nodejs/sender-monitor/config.json b/nodejs/sender-monitor/config.json index dd8960f..76f131e 100644 --- a/nodejs/sender-monitor/config.json +++ b/nodejs/sender-monitor/config.json @@ -9,7 +9,7 @@ "useEdgeForOCR": true, "monitorMode": "clipboard", "translation": { - "enabled": true, + "enabled": false, "sourceLang": "en", "targetLang": "es", "autoCorrect": true diff --git a/nodejs/sender-monitor/package-lock.json b/nodejs/sender-monitor/package-lock.json index d470b59..be525dc 100644 --- a/nodejs/sender-monitor/package-lock.json +++ b/nodejs/sender-monitor/package-lock.json @@ -11,6 +11,7 @@ "@faker-js/faker": "^9.1.0", "@mapbox/node-pre-gyp": "^1.0.11", "electron-edge-js": "^33.0.1", + "google-translate-api-x": "^10.7.1", "node-screenshots": "^0.2.2", "qrcode": "^1.5.4", "socket.io-client": "^4.8.1", @@ -3157,6 +3158,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/google-translate-api-x": { + "version": "10.7.1", + "resolved": "https://registry.npmjs.org/google-translate-api-x/-/google-translate-api-x-10.7.1.tgz", + "integrity": "sha512-OdZDS6jRWzn1woOk62aOKQ5OyVaJSA+eyc6CktOWxo36IWfstOjwG/dkvnGl3Z2Sbpmk1A+jc2WwrBiRjqaY2A==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/AidanWelch" + } + }, "node_modules/gopd": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", diff --git a/nodejs/sender-monitor/package.json b/nodejs/sender-monitor/package.json index b5fc10a..7cf1dc8 100644 --- a/nodejs/sender-monitor/package.json +++ b/nodejs/sender-monitor/package.json @@ -51,17 +51,17 @@ }, "dependencies": { "@faker-js/faker": "^9.1.0", + "@mapbox/node-pre-gyp": "^1.0.11", "electron-edge-js": "^33.0.1", + "google-translate-api-x": "^10.7.1", "node-screenshots": "^0.2.2", "qrcode": "^1.5.4", "socket.io-client": "^4.8.1", "tesseract.js": "^5.1.1", - "wrtc": "^0.4.7", - "@mapbox/node-pre-gyp": "^1.0.11", - "google-translate-api-x": "^10.7.1" + "wrtc": "^0.4.7" }, "devDependencies": { "electron": "^32.0.0", "electron-builder": "^25.1.8" } -} \ No newline at end of file +}