diff --git a/searx/languages.py b/searx/languages.py index 7db692a9c..5f52d03f3 100644 --- a/searx/languages.py +++ b/searx/languages.py @@ -2,7 +2,9 @@ # list of language codes # this file is generated automatically by utils/fetch_languages.py language_codes = \ -( ('ar-EG', 'العربية', '', 'Arabic'), +( ('af-ZA', 'Afrikaans', '', 'Afrikaans'), + ('ar-EG', 'العربية', '', 'Arabic'), + ('be-BY', 'Беларуская', '', 'Belarusian'), ('bg-BG', 'Български', '', 'Bulgarian'), ('ca-ES', 'Català', '', 'Catalan'), ('cs-CZ', 'Čeština', '', 'Czech'), @@ -26,6 +28,7 @@ language_codes = \ ('es-ES', 'Español', 'España', 'Spanish'), ('es-MX', 'Español', 'México', 'Spanish'), ('et-EE', 'Eesti', '', 'Estonian'), + ('fa-IR', 'فارسی', '', 'Persian'), ('fi-FI', 'Suomi', '', 'Finnish'), ('fr', 'Français', '', 'French'), ('fr-BE', 'Français', 'Belgique', 'French'), @@ -36,6 +39,7 @@ language_codes = \ ('hr-HR', 'Hrvatski', '', 'Croatian'), ('hu-HU', 'Magyar', '', 'Hungarian'), ('id-ID', 'Indonesia', '', 'Indonesian'), + ('is-IS', 'Íslenska', '', 'Icelandic'), ('it-IT', 'Italiano', '', 'Italian'), ('ja-JP', '日本語', '', 'Japanese'), ('ko-KR', '한국어', '', 'Korean'), @@ -53,9 +57,12 @@ language_codes = \ ('ru-RU', 'Русский', '', 'Russian'), ('sk-SK', 'Slovenčina', '', 'Slovak'), ('sl-SI', 'Slovenščina', '', 'Slovenian'), + ('sr-RS', 'Srpski', '', 'Serbian'), ('sv-SE', 'Svenska', '', 'Swedish'), + ('sw-TZ', 'Kiswahili', '', 'Swahili'), ('th-TH', 'ไทย', '', 'Thai'), ('tr-TR', 'Türkçe', '', 'Turkish'), + ('uk-UA', 'Українська', '', 'Ukrainian'), ('vi-VN', 'Tiếng Việt', '', 'Vietnamese'), ('zh', '中文', '', 'Chinese'), ('zh-CN', '中文', '中国', 'Chinese'), diff --git a/searx_extra/update/update_languages.py b/searx_extra/update/update_languages.py index 1b43e01af..3f8a989eb 100755 --- a/searx_extra/update/update_languages.py +++ b/searx_extra/update/update_languages.py @@ -109,7 +109,7 @@ def join_language_lists(engines_languages): # Filter language list so it only includes the most supported languages and countries def filter_language_list(all_languages): - min_engines_per_lang = 15 + min_engines_per_lang = 13 min_engines_per_country = 10 main_engines = [engine_name for engine_name in engines.keys() if 'general' in engines[engine_name].categories and