mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[fix] check language aliases when setting search language
This commit is contained in:
parent
3c95d64ff8
commit
5568f24d6c
16 changed files with 29 additions and 11 deletions
|
|
@ -48,7 +48,7 @@ def request(query, params):
|
|||
'ADLT=' + safesearch_types.get(params['safesearch'], 'DEMOTE')
|
||||
|
||||
# language cookie
|
||||
language = match_language(params['language'], supported_languages).lower()
|
||||
language = match_language(params['language'], supported_languages, language_aliases).lower()
|
||||
params['cookies']['_EDGE_S'] = 'mkt=' + language + '&F=1'
|
||||
|
||||
# query and paging
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue