Removed LingvaTranslate

This commit is contained in:
ManeraKai 2023-09-19 10:39:32 +03:00
parent 2e1de247ee
commit 98210bf264
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 0 additions and 20 deletions

View File

@ -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'],

View File

@ -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,