mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 15:59:21 +02:00
[enh] engine: mojeek - add language support
Improve region and language detection / all locale Testing has shown the following behaviour for the different default and empty values of Mojeeks parameters: | param | idx | value | behaviour | | -------- | --- | ------ | ------------------------- | | region | 0 | '' | detect region based on IP | | region | 1 | 'none' | all regions | | language | 0 | '' | all languages |
This commit is contained in:
parent
5b6f40414a
commit
8b6a3f3e11
3 changed files with 49 additions and 5 deletions
|
@ -101,7 +101,7 @@ def fetch_traits_map():
|
|||
def filter_locales(traits_map: EngineTraitsMap):
|
||||
"""Filter language & region tags by a threshold."""
|
||||
|
||||
min_eng_per_region = 15
|
||||
min_eng_per_region = 18
|
||||
min_eng_per_lang = 20
|
||||
|
||||
_ = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue