mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +02: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
5 changed files with 6 additions and 11 deletions
|
@ -13,7 +13,7 @@ about = {
|
|||
}
|
||||
|
||||
engine_type = 'online_dictionary'
|
||||
categories = ['general']
|
||||
categories = ['general', 'translate']
|
||||
|
||||
url = 'https://api-free.deepl.com/v2/translate'
|
||||
api_key = None
|
||||
|
@ -51,11 +51,6 @@ def response(resp):
|
|||
|
||||
infobox += "</dl>"
|
||||
|
||||
results.append(
|
||||
{
|
||||
'infobox': 'Deepl',
|
||||
'content': infobox,
|
||||
}
|
||||
)
|
||||
results.append({'answer': infobox})
|
||||
|
||||
return results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue