[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:
0xhtml 2024-09-29 17:27:29 +02:00 committed by Markus Heiser
parent 5b6f40414a
commit 8b6a3f3e11
3 changed files with 49 additions and 5 deletions

View file

@ -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
_ = {}