diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 883054b..6b6cc78 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -179,19 +179,6 @@ function redirect(url, type, initiator, forceRedirection) { .replace("text", "q") return `${randomInstance}/${search}` } - case "lingva": { - let params_arr = url.search.split("&") - params_arr[0] = params_arr[0].substring(1) - let params = {} - for (let i = 0; i < params_arr.length; i++) { - let pair = params_arr[i].split("=") - params[pair[0]] = pair[1] - } - if (params.sl && params.tl && params.text) { - return `${randomInstance}/${params.sl}/${params.tl}/${params.text}` - } - return randomInstance - } case "osm": { const dataLatLngRegex = /!3d(-?[0-9]{1,}.[0-9]{1,})!4d(-?[0-9]{1,}.[0-9]{1,})/ const placeRegex = /\/place\/(.*)\// @@ -659,7 +646,6 @@ const defaultInstances = { 'quetre': ['https://quetre.iket.me'], 'libremdb': ['https://libremdb.iket.me'], 'simplyTranslate': ['https://simplytranslate.org'], - 'lingva': ['https://lingva.ml'], 'searxng': ['https://search.bus-hit.me'], '4get': ['https://4get.ca'], 'rimgo': ['https://rimgo.vern.cc'], diff --git a/src/config.json b/src/config.json index 87562dd..a42fa8d 100644 --- a/src/config.json +++ b/src/config.json @@ -518,12 +518,6 @@ "url": "https://git.sr.ht/~metalune/simplytranslate_web", "localhost": true }, - "lingva": { - "name": "Lingva Translate", - "instanceList": true, - "url": "https://github.com/TheDavidDelta/lingva-translate", - "localhost": true - }, "libreTranslate": { "name": "LibreTranslate", "instanceList": true,