mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 04:01:40 +01:00
[refactor] translation engines: add translate category
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
91522f3801
commit
0a4280a137
@ -13,7 +13,7 @@ about = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
engine_type = 'online_dictionary'
|
engine_type = 'online_dictionary'
|
||||||
categories = ['general']
|
categories = ['general', 'translate']
|
||||||
|
|
||||||
url = 'https://api-free.deepl.com/v2/translate'
|
url = 'https://api-free.deepl.com/v2/translate'
|
||||||
api_key = None
|
api_key = None
|
||||||
@ -51,11 +51,6 @@ def response(resp):
|
|||||||
|
|
||||||
infobox += "</dl>"
|
infobox += "</dl>"
|
||||||
|
|
||||||
results.append(
|
results.append({'answer': infobox})
|
||||||
{
|
|
||||||
'infobox': 'Deepl',
|
|
||||||
'content': infobox,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
@ -18,7 +18,7 @@ about = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
engine_type = 'online_dictionary'
|
engine_type = 'online_dictionary'
|
||||||
categories = ['general']
|
categories = ['general', 'translate']
|
||||||
url = 'https://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'
|
url = 'https://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'
|
||||||
weight = 100
|
weight = 100
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ about = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
engine_type = 'online_dictionary'
|
engine_type = 'online_dictionary'
|
||||||
categories = ['general']
|
categories = ['general', 'translate']
|
||||||
|
|
||||||
url = "https://lingva.thedaviddelta.com"
|
url = "https://lingva.thedaviddelta.com"
|
||||||
search_url = "{url}/api/v1/{from_lang}/{to_lang}/{query}"
|
search_url = "{url}/api/v1/{from_lang}/{to_lang}/{query}"
|
||||||
|
@ -15,7 +15,7 @@ about = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
engine_type = 'online_dictionary'
|
engine_type = 'online_dictionary'
|
||||||
categories = ['general']
|
categories = ['general', 'translate']
|
||||||
|
|
||||||
base_url = "https://mozhi.aryak.me"
|
base_url = "https://mozhi.aryak.me"
|
||||||
mozhi_engine = "google"
|
mozhi_engine = "google"
|
||||||
|
@ -14,7 +14,7 @@ about = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
engine_type = 'online_dictionary'
|
engine_type = 'online_dictionary'
|
||||||
categories = ['dictionaries']
|
categories = ['general', 'translate']
|
||||||
url = 'https://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}'
|
url = 'https://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}'
|
||||||
web_url = 'https://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'
|
web_url = 'https://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'
|
||||||
weight = 100
|
weight = 100
|
||||||
|
Loading…
Reference in New Issue
Block a user