.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
sxng_locales.py
Go to the documentation of this file.
1# SPDX-License-Identifier: AGPL-3.0-or-later
2'''List of SearXNG's locale codes used for the search language/region.
3
4.. hint::
5
6 Don't modify this file, this file is generated by::
7
8 ./manage data.traits
9'''
10
11sxng_locales = (
12 ('af', 'Afrikaans', '', 'Afrikaans', '\U0001f310'),
13 ('ar', 'العربية', '', 'Arabic', '\U0001f310'),
14 ('ar-SA', 'العربية', 'المملكة العربية السعودية', 'Arabic', '\U0001f1f8\U0001f1e6'),
15 ('be', 'Беларуская', '', 'Belarusian', '\U0001f310'),
16 ('bg', 'Български', '', 'Bulgarian', '\U0001f310'),
17 ('bg-BG', 'Български', 'България', 'Bulgarian', '\U0001f1e7\U0001f1ec'),
18 ('ca', 'Català', '', 'Catalan', '\U0001f310'),
19 ('cs', 'Čeština', '', 'Czech', '\U0001f310'),
20 ('cs-CZ', 'Čeština', 'Česko', 'Czech', '\U0001f1e8\U0001f1ff'),
21 ('cy', 'Cymraeg', '', 'Welsh', '\U0001f310'),
22 ('da', 'Dansk', '', 'Danish', '\U0001f310'),
23 ('da-DK', 'Dansk', 'Danmark', 'Danish', '\U0001f1e9\U0001f1f0'),
24 ('de', 'Deutsch', '', 'German', '\U0001f310'),
25 ('de-AT', 'Deutsch', 'Österreich', 'German', '\U0001f1e6\U0001f1f9'),
26 ('de-CH', 'Deutsch', 'Schweiz', 'German', '\U0001f1e8\U0001f1ed'),
27 ('de-DE', 'Deutsch', 'Deutschland', 'German', '\U0001f1e9\U0001f1ea'),
28 ('el', 'Ελληνικά', '', 'Greek', '\U0001f310'),
29 ('el-GR', 'Ελληνικά', 'Ελλάδα', 'Greek', '\U0001f1ec\U0001f1f7'),
30 ('en', 'English', '', 'English', '\U0001f310'),
31 ('en-AU', 'English', 'Australia', 'English', '\U0001f1e6\U0001f1fa'),
32 ('en-CA', 'English', 'Canada', 'English', '\U0001f1e8\U0001f1e6'),
33 ('en-GB', 'English', 'United Kingdom', 'English', '\U0001f1ec\U0001f1e7'),
34 ('en-IE', 'English', 'Ireland', 'English', '\U0001f1ee\U0001f1ea'),
35 ('en-IN', 'English', 'India', 'English', '\U0001f1ee\U0001f1f3'),
36 ('en-NZ', 'English', 'New Zealand', 'English', '\U0001f1f3\U0001f1ff'),
37 ('en-PH', 'English', 'Philippines', 'English', '\U0001f1f5\U0001f1ed'),
38 ('en-PK', 'English', 'Pakistan', 'English', '\U0001f1f5\U0001f1f0'),
39 ('en-SG', 'English', 'Singapore', 'English', '\U0001f1f8\U0001f1ec'),
40 ('en-US', 'English', 'United States', 'English', '\U0001f1fa\U0001f1f8'),
41 ('en-ZA', 'English', 'South Africa', 'English', '\U0001f1ff\U0001f1e6'),
42 ('es', 'Español', '', 'Spanish', '\U0001f310'),
43 ('es-AR', 'Español', 'Argentina', 'Spanish', '\U0001f1e6\U0001f1f7'),
44 ('es-CL', 'Español', 'Chile', 'Spanish', '\U0001f1e8\U0001f1f1'),
45 ('es-CO', 'Español', 'Colombia', 'Spanish', '\U0001f1e8\U0001f1f4'),
46 ('es-ES', 'Español', 'España', 'Spanish', '\U0001f1ea\U0001f1f8'),
47 ('es-MX', 'Español', 'México', 'Spanish', '\U0001f1f2\U0001f1fd'),
48 ('es-PE', 'Español', 'Perú', 'Spanish', '\U0001f1f5\U0001f1ea'),
49 ('et', 'Eesti', '', 'Estonian', '\U0001f310'),
50 ('et-EE', 'Eesti', 'Eesti', 'Estonian', '\U0001f1ea\U0001f1ea'),
51 ('eu', 'Euskara', '', 'Basque', '\U0001f310'),
52 ('fa', 'فارسی', '', 'Persian', '\U0001f310'),
53 ('fi', 'Suomi', '', 'Finnish', '\U0001f310'),
54 ('fi-FI', 'Suomi', 'Suomi', 'Finnish', '\U0001f1eb\U0001f1ee'),
55 ('fr', 'Français', '', 'French', '\U0001f310'),
56 ('fr-BE', 'Français', 'Belgique', 'French', '\U0001f1e7\U0001f1ea'),
57 ('fr-CA', 'Français', 'Canada', 'French', '\U0001f1e8\U0001f1e6'),
58 ('fr-CH', 'Français', 'Suisse', 'French', '\U0001f1e8\U0001f1ed'),
59 ('fr-FR', 'Français', 'France', 'French', '\U0001f1eb\U0001f1f7'),
60 ('ga', 'Gaeilge', '', 'Irish', '\U0001f310'),
61 ('gd', 'Gàidhlig', '', 'Scottish Gaelic', '\U0001f310'),
62 ('gl', 'Galego', '', 'Galician', '\U0001f310'),
63 ('he', 'עברית', '', 'Hebrew', '\U0001f1ee\U0001f1f1'),
64 ('hi', 'हिन्दी', '', 'Hindi', '\U0001f310'),
65 ('hr', 'Hrvatski', '', 'Croatian', '\U0001f310'),
66 ('hu', 'Magyar', '', 'Hungarian', '\U0001f310'),
67 ('hu-HU', 'Magyar', 'Magyarország', 'Hungarian', '\U0001f1ed\U0001f1fa'),
68 ('id', 'Indonesia', '', 'Indonesian', '\U0001f310'),
69 ('id-ID', 'Indonesia', 'Indonesia', 'Indonesian', '\U0001f1ee\U0001f1e9'),
70 ('is', 'Íslenska', '', 'Icelandic', '\U0001f310'),
71 ('it', 'Italiano', '', 'Italian', '\U0001f310'),
72 ('it-CH', 'Italiano', 'Svizzera', 'Italian', '\U0001f1e8\U0001f1ed'),
73 ('it-IT', 'Italiano', 'Italia', 'Italian', '\U0001f1ee\U0001f1f9'),
74 ('ja', '日本語', '', 'Japanese', '\U0001f310'),
75 ('ja-JP', '日本語', '日本', 'Japanese', '\U0001f1ef\U0001f1f5'),
76 ('kn', 'ಕನ್ನಡ', '', 'Kannada', '\U0001f310'),
77 ('ko', '한국어', '', 'Korean', '\U0001f310'),
78 ('ko-KR', '한국어', '대한민국', 'Korean', '\U0001f1f0\U0001f1f7'),
79 ('lt', 'Lietuvių', '', 'Lithuanian', '\U0001f310'),
80 ('lv', 'Latviešu', '', 'Latvian', '\U0001f310'),
81 ('ml', 'മലയാളം', '', 'Malayalam', '\U0001f310'),
82 ('mr', 'मराठी', '', 'Marathi', '\U0001f310'),
83 ('nb', 'Norsk Bokmål', '', 'Norwegian Bokmål', '\U0001f310'),
84 ('nb-NO', 'Norsk Bokmål', 'Norge', 'Norwegian Bokmål', '\U0001f1f3\U0001f1f4'),
85 ('nl', 'Nederlands', '', 'Dutch', '\U0001f310'),
86 ('nl-BE', 'Nederlands', 'België', 'Dutch', '\U0001f1e7\U0001f1ea'),
87 ('nl-NL', 'Nederlands', 'Nederland', 'Dutch', '\U0001f1f3\U0001f1f1'),
88 ('pl', 'Polski', '', 'Polish', '\U0001f310'),
89 ('pl-PL', 'Polski', 'Polska', 'Polish', '\U0001f1f5\U0001f1f1'),
90 ('pt', 'Português', '', 'Portuguese', '\U0001f310'),
91 ('pt-BR', 'Português', 'Brasil', 'Portuguese', '\U0001f1e7\U0001f1f7'),
92 ('pt-PT', 'Português', 'Portugal', 'Portuguese', '\U0001f1f5\U0001f1f9'),
93 ('ro', 'Română', '', 'Romanian', '\U0001f310'),
94 ('ro-RO', 'Română', 'România', 'Romanian', '\U0001f1f7\U0001f1f4'),
95 ('ru', 'Русский', '', 'Russian', '\U0001f310'),
96 ('ru-RU', 'Русский', 'Россия', 'Russian', '\U0001f1f7\U0001f1fa'),
97 ('sk', 'Slovenčina', '', 'Slovak', '\U0001f310'),
98 ('sl', 'Slovenščina', '', 'Slovenian', '\U0001f310'),
99 ('sq', 'Shqip', '', 'Albanian', '\U0001f310'),
100 ('sv', 'Svenska', '', 'Swedish', '\U0001f310'),
101 ('sv-SE', 'Svenska', 'Sverige', 'Swedish', '\U0001f1f8\U0001f1ea'),
102 ('ta', 'தமிழ்', '', 'Tamil', '\U0001f310'),
103 ('te', 'తెలుగు', '', 'Telugu', '\U0001f310'),
104 ('th', 'ไทย', '', 'Thai', '\U0001f310'),
105 ('th-TH', 'ไทย', 'ไทย', 'Thai', '\U0001f1f9\U0001f1ed'),
106 ('tr', 'Türkçe', '', 'Turkish', '\U0001f310'),
107 ('tr-TR', 'Türkçe', 'Türkiye', 'Turkish', '\U0001f1f9\U0001f1f7'),
108 ('uk', 'Українська', '', 'Ukrainian', '\U0001f310'),
109 ('ur', 'اردو', '', 'Urdu', '\U0001f310'),
110 ('vi', 'Tiếng Việt', '', 'Vietnamese', '\U0001f310'),
111 ('vi-VN', 'Tiếng Việt', 'Việt Nam', 'Vietnamese', '\U0001f1fb\U0001f1f3'),
112 ('zh', '中文', '', 'Chinese', '\U0001f310'),
113 ('zh-CN', '中文', '中国', 'Chinese', '\U0001f1e8\U0001f1f3'),
114 ('zh-HK', '中文', '中國香港特別行政區', 'Chinese', '\U0001f1ed\U0001f1f0'),
115 ('zh-TW', '中文', '台灣', 'Chinese', '\U0001f1f9\U0001f1fc'),
116)
117'''
118A list of five-digit tuples:
119
1200. SearXNG's internal locale tag (a language or region tag)
1211. Name of the language (:py:obj:`babel.core.Locale.get_language_name`)
1222. For region tags the name of the region (:py:obj:`babel.core.Locale.get_territory_name`).
123 Empty string for language tags.
1243. English language name (from :py:obj:`babel.core.Locale.english_name`)
1254. Unicode flag (emoji) that fits to SearXNG's internal region tag. Languages
126 are represented by a globe (🌐)
127
128.. code:: python
129
130 ('en', 'English', '', 'English', '🌐'),
131 ('en-CA', 'English', 'Canada', 'English', '🇨🇦'),
132 ('en-US', 'English', 'United States', 'English', '🇺🇸'),
133 ..
134 ('fr', 'Français', '', 'French', '🌐'),
135 ('fr-BE', 'Français', 'Belgique', 'French', '🇧🇪'),
136 ('fr-CA', 'Français', 'Canada', 'French', '🇨🇦'),
137
138:meta hide-value:
139'''