Locales

Initialize LOCALE_NAMES, RTL_LOCALES.

searx.locales.LOCALE_NAMES = {'ar': 'العربية (Arabic)', 'bg': 'Български (Bulgarian)', 'bo': 'བོད་སྐད་ (Tibetan)', 'ca': 'Català (Catalan)', 'cs': 'Čeština (Czech)', 'cy': 'Cymraeg (Welsh)', 'da': 'Dansk (Danish)', 'de': 'Deutsch (German)', 'el-GR': 'Ελληνικά, Ελλάδα (Greek, Greece)', 'en': 'English', 'eo': 'Esperanto', 'es': 'Español (Spanish)', 'et': 'Eesti (Estonian)', 'eu': 'Euskara (Basque)', 'fa-IR': 'فارسی, ایران (Persian, Iran)', 'fi': 'Suomi (Finnish)', 'fil': 'Filipino', 'fr': 'Français (French)', 'gl': 'Galego (Galician)', 'he': 'עברית (Hebrew)', 'hr': 'Hrvatski (Croatian)', 'hu': 'Magyar (Hungarian)', 'ia': 'Interlingua', 'id': 'Indonesia (Indonesian)', 'it': 'Italiano (Italian)', 'ja': '日本語 (Japanese)', 'lt': 'Lietuvių (Lithuanian)', 'nb-NO': 'Norsk bokmål, Norge (Norwegian bokmål, Norway)', 'nl': 'Nederlands (Dutch)', 'nl-BE': 'Vlaams (Dutch, Belgium)', 'oc': 'Occitan', 'pl': 'Polski (Polish)', 'pt': 'Português (Portuguese)', 'pt-BR': 'Português, Brasil (Portuguese, Brazil)', 'ro': 'Română (Romanian)', 'ru': 'Русский (Russian)', 'sk': 'Slovenčina (Slovak)', 'sl': 'Slovenščina (Slovenian)', 'sr': 'Српски (Serbian)', 'sv': 'Svenska (Swedish)', 'ta': 'தமிழ் (Tamil)', 'te': 'తెలుగు (Telugu)', 'tr': 'Türkçe (Turkish)', 'uk': 'Українська (Ukrainian)', 'vi': 'Tiếng việt (Vietnamese)', 'zh-Hans-CN': '中文, 中国 (Chinese, China)', 'zh-Hant-TW': '中文, 台灣 (Chinese, Taiwan)'}

Mapping of locales and their description. Locales e.g. ‘fr’ or ‘pt-BR’ (delimiter is underline ‘-‘)

searx.locales.RTL_LOCALES: Set[str] = {'ar', 'fa-IR', 'he'}

List of Right-To-Left locales e.g. ‘he’ or ‘fa-IR’ (delimiter is underline ‘-‘)

searx.locales.initialize_locales(directory)[source]

Initialize global names LOCALE_NAMES, RTL_LOCALES.