2024-03-11 13:06:26 +00:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-10-10 17:31:22 +00:00
|
|
|
'''List of SearXNG's locale codes.
|
|
|
|
|
2024-02-16 20:46:18 +00:00
|
|
|
.. hint::
|
2022-10-10 17:31:22 +00:00
|
|
|
|
2024-02-16 20:46:18 +00:00
|
|
|
Don't modify this file, this file is generated by::
|
|
|
|
|
|
|
|
./manage data.traits
|
2022-10-10 17:31:22 +00:00
|
|
|
'''
|
|
|
|
|
|
|
|
sxng_locales = (
|
2023-09-26 11:10:03 +00:00
|
|
|
('af', 'Afrikaans', '', 'Afrikaans', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('ar', 'العربية', '', 'Arabic', '\U0001f310'),
|
2023-09-26 11:10:03 +00:00
|
|
|
('ar-SA', 'العربية', 'المملكة العربية السعودية', 'Arabic', '\U0001f1f8\U0001f1e6'),
|
|
|
|
('be', 'Беларуская', '', 'Belarusian', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('bg', 'Български', '', 'Bulgarian', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('bg-BG', 'Български', 'България', 'Bulgarian', '\U0001f1e7\U0001f1ec'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('ca', 'Català', '', 'Catalan', '\U0001f310'),
|
|
|
|
('cs', 'Čeština', '', 'Czech', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('cs-CZ', 'Čeština', 'Česko', 'Czech', '\U0001f1e8\U0001f1ff'),
|
2024-10-02 08:41:58 +00:00
|
|
|
('cy', 'Cymraeg', '', 'Welsh', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('da', 'Dansk', '', 'Danish', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('da-DK', 'Dansk', 'Danmark', 'Danish', '\U0001f1e9\U0001f1f0'),
|
2022-03-19 11:14:07 +00:00
|
|
|
('de', 'Deutsch', '', 'German', '\U0001f310'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('de-AT', 'Deutsch', 'Österreich', 'German', '\U0001f1e6\U0001f1f9'),
|
|
|
|
('de-CH', 'Deutsch', 'Schweiz', 'German', '\U0001f1e8\U0001f1ed'),
|
|
|
|
('de-DE', 'Deutsch', 'Deutschland', 'German', '\U0001f1e9\U0001f1ea'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('el', 'Ελληνικά', '', 'Greek', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('el-GR', 'Ελληνικά', 'Ελλάδα', 'Greek', '\U0001f1ec\U0001f1f7'),
|
2022-03-19 11:14:07 +00:00
|
|
|
('en', 'English', '', 'English', '\U0001f310'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('en-AU', 'English', 'Australia', 'English', '\U0001f1e6\U0001f1fa'),
|
|
|
|
('en-CA', 'English', 'Canada', 'English', '\U0001f1e8\U0001f1e6'),
|
|
|
|
('en-GB', 'English', 'United Kingdom', 'English', '\U0001f1ec\U0001f1e7'),
|
|
|
|
('en-IE', 'English', 'Ireland', 'English', '\U0001f1ee\U0001f1ea'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('en-IN', 'English', 'India', 'English', '\U0001f1ee\U0001f1f3'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('en-NZ', 'English', 'New Zealand', 'English', '\U0001f1f3\U0001f1ff'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('en-PH', 'English', 'Philippines', 'English', '\U0001f1f5\U0001f1ed'),
|
2024-01-29 00:14:29 +00:00
|
|
|
('en-PK', 'English', 'Pakistan', 'English', '\U0001f1f5\U0001f1f0'),
|
|
|
|
('en-SG', 'English', 'Singapore', 'English', '\U0001f1f8\U0001f1ec'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('en-US', 'English', 'United States', 'English', '\U0001f1fa\U0001f1f8'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('en-ZA', 'English', 'South Africa', 'English', '\U0001f1ff\U0001f1e6'),
|
2022-03-19 11:14:07 +00:00
|
|
|
('es', 'Español', '', 'Spanish', '\U0001f310'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('es-AR', 'Español', 'Argentina', 'Spanish', '\U0001f1e6\U0001f1f7'),
|
|
|
|
('es-CL', 'Español', 'Chile', 'Spanish', '\U0001f1e8\U0001f1f1'),
|
2024-01-29 00:14:29 +00:00
|
|
|
('es-CO', 'Español', 'Colombia', 'Spanish', '\U0001f1e8\U0001f1f4'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('es-ES', 'Español', 'España', 'Spanish', '\U0001f1ea\U0001f1f8'),
|
|
|
|
('es-MX', 'Español', 'México', 'Spanish', '\U0001f1f2\U0001f1fd'),
|
2024-01-29 00:14:29 +00:00
|
|
|
('es-PE', 'Español', 'Perú', 'Spanish', '\U0001f1f5\U0001f1ea'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('et', 'Eesti', '', 'Estonian', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('et-EE', 'Eesti', 'Eesti', 'Estonian', '\U0001f1ea\U0001f1ea'),
|
2023-06-25 16:32:15 +00:00
|
|
|
('fa', 'فارسی', '', 'Persian', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('fi', 'Suomi', '', 'Finnish', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('fi-FI', 'Suomi', 'Suomi', 'Finnish', '\U0001f1eb\U0001f1ee'),
|
2022-03-19 11:14:07 +00:00
|
|
|
('fr', 'Français', '', 'French', '\U0001f310'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('fr-BE', 'Français', 'Belgique', 'French', '\U0001f1e7\U0001f1ea'),
|
|
|
|
('fr-CA', 'Français', 'Canada', 'French', '\U0001f1e8\U0001f1e6'),
|
|
|
|
('fr-CH', 'Français', 'Suisse', 'French', '\U0001f1e8\U0001f1ed'),
|
|
|
|
('fr-FR', 'Français', 'France', 'French', '\U0001f1eb\U0001f1f7'),
|
2024-10-02 08:41:58 +00:00
|
|
|
('ga', 'Gaeilge', '', 'Irish', '\U0001f310'),
|
|
|
|
('gd', 'Gàidhlig', '', 'Scottish Gaelic', '\U0001f310'),
|
2024-06-25 13:12:54 +00:00
|
|
|
('gl', 'Galego', '', 'Galician', '\U0001f310'),
|
2023-04-16 00:14:13 +00:00
|
|
|
('he', 'עברית', '', 'Hebrew', '\U0001f1ee\U0001f1f1'),
|
2022-11-05 14:10:52 +00:00
|
|
|
('hi', 'हिन्दी', '', 'Hindi', '\U0001f310'),
|
|
|
|
('hr', 'Hrvatski', '', 'Croatian', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('hu', 'Magyar', '', 'Hungarian', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('hu-HU', 'Magyar', 'Magyarország', 'Hungarian', '\U0001f1ed\U0001f1fa'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('id', 'Indonesia', '', 'Indonesian', '\U0001f310'),
|
2022-04-22 10:09:42 +00:00
|
|
|
('id-ID', 'Indonesia', 'Indonesia', 'Indonesian', '\U0001f1ee\U0001f1e9'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('it', 'Italiano', '', 'Italian', '\U0001f310'),
|
|
|
|
('it-CH', 'Italiano', 'Svizzera', 'Italian', '\U0001f1e8\U0001f1ed'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('it-IT', 'Italiano', 'Italia', 'Italian', '\U0001f1ee\U0001f1f9'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('ja', '日本語', '', 'Japanese', '\U0001f310'),
|
2022-04-03 12:30:19 +00:00
|
|
|
('ja-JP', '日本語', '日本', 'Japanese', '\U0001f1ef\U0001f1f5'),
|
2024-01-29 00:14:29 +00:00
|
|
|
('kn', 'ಕನ್ನಡ', '', 'Kannada', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('ko', '한국어', '', 'Korean', '\U0001f310'),
|
2022-04-03 12:30:19 +00:00
|
|
|
('ko-KR', '한국어', '대한민국', 'Korean', '\U0001f1f0\U0001f1f7'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('lt', 'Lietuvių', '', 'Lithuanian', '\U0001f310'),
|
|
|
|
('lv', 'Latviešu', '', 'Latvian', '\U0001f310'),
|
2024-01-29 00:14:29 +00:00
|
|
|
('ml', 'മലയാളം', '', 'Malayalam', '\U0001f310'),
|
|
|
|
('mr', 'मराठी', '', 'Marathi', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('nb', 'Norsk Bokmål', '', 'Norwegian Bokmål', '\U0001f310'),
|
|
|
|
('nb-NO', 'Norsk Bokmål', 'Norge', 'Norwegian Bokmål', '\U0001f1f3\U0001f1f4'),
|
2022-03-19 11:14:07 +00:00
|
|
|
('nl', 'Nederlands', '', 'Dutch', '\U0001f310'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('nl-BE', 'Nederlands', 'België', 'Dutch', '\U0001f1e7\U0001f1ea'),
|
|
|
|
('nl-NL', 'Nederlands', 'Nederland', 'Dutch', '\U0001f1f3\U0001f1f1'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('pl', 'Polski', '', 'Polish', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('pl-PL', 'Polski', 'Polska', 'Polish', '\U0001f1f5\U0001f1f1'),
|
2022-03-19 11:14:07 +00:00
|
|
|
('pt', 'Português', '', 'Portuguese', '\U0001f310'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('pt-BR', 'Português', 'Brasil', 'Portuguese', '\U0001f1e7\U0001f1f7'),
|
|
|
|
('pt-PT', 'Português', 'Portugal', 'Portuguese', '\U0001f1f5\U0001f1f9'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('ro', 'Română', '', 'Romanian', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('ro-RO', 'Română', 'România', 'Romanian', '\U0001f1f7\U0001f1f4'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('ru', 'Русский', '', 'Russian', '\U0001f310'),
|
2022-04-03 12:30:19 +00:00
|
|
|
('ru-RU', 'Русский', 'Россия', 'Russian', '\U0001f1f7\U0001f1fa'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('sk', 'Slovenčina', '', 'Slovak', '\U0001f310'),
|
|
|
|
('sl', 'Slovenščina', '', 'Slovenian', '\U0001f310'),
|
2024-10-02 08:41:58 +00:00
|
|
|
('sq', 'Shqip', '', 'Albanian', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('sv', 'Svenska', '', 'Swedish', '\U0001f310'),
|
2022-03-19 15:45:14 +00:00
|
|
|
('sv-SE', 'Svenska', 'Sverige', 'Swedish', '\U0001f1f8\U0001f1ea'),
|
2024-01-29 00:14:29 +00:00
|
|
|
('ta', 'தமிழ்', '', 'Tamil', '\U0001f310'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('th', 'ไทย', '', 'Thai', '\U0001f310'),
|
2022-04-03 12:30:19 +00:00
|
|
|
('th-TH', 'ไทย', 'ไทย', 'Thai', '\U0001f1f9\U0001f1ed'),
|
2022-10-10 17:31:22 +00:00
|
|
|
('tr', 'Türkçe', '', 'Turkish', '\U0001f310'),
|
2022-04-03 12:30:19 +00:00
|
|
|
('tr-TR', 'Türkçe', 'Türkiye', 'Turkish', '\U0001f1f9\U0001f1f7'),
|
2022-11-05 14:10:52 +00:00
|
|
|
('uk', 'Українська', '', 'Ukrainian', '\U0001f310'),
|
2024-01-29 00:14:29 +00:00
|
|
|
('ur', 'اردو', '', 'Urdu', '\U0001f310'),
|
2022-11-05 14:10:52 +00:00
|
|
|
('vi', 'Tiếng Việt', '', 'Vietnamese', '\U0001f310'),
|
2022-03-19 11:14:07 +00:00
|
|
|
('zh', '中文', '', 'Chinese', '\U0001f310'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('zh-CN', '中文', '中国', 'Chinese', '\U0001f1e8\U0001f1f3'),
|
2023-03-01 01:37:46 +00:00
|
|
|
('zh-HK', '中文', '中國香港特別行政區', 'Chinese', '\U0001f1ed\U0001f1f0'),
|
2022-03-16 17:07:00 +00:00
|
|
|
('zh-TW', '中文', '台灣', 'Chinese', '\U0001f1f9\U0001f1fc'),
|
2021-12-27 08:26:22 +00:00
|
|
|
)
|
2022-10-10 17:31:22 +00:00
|
|
|
'''
|
|
|
|
A list of five-digit tuples:
|
|
|
|
|
|
|
|
0. SearXNG's internal locale tag (a language or region tag)
|
|
|
|
1. Name of the language (:py:obj:`babel.core.Locale.get_language_name`)
|
|
|
|
2. For region tags the name of the region (:py:obj:`babel.core.Locale.get_territory_name`).
|
|
|
|
Empty string for language tags.
|
|
|
|
3. English language name (from :py:obj:`babel.core.Locale.english_name`)
|
|
|
|
4. Unicode flag (emoji) that fits to SearXNG's internal region tag. Languages
|
|
|
|
are represented by a globe (🌐)
|
|
|
|
|
|
|
|
.. code:: python
|
|
|
|
|
|
|
|
('en', 'English', '', 'English', '🌐'),
|
|
|
|
('en-CA', 'English', 'Canada', 'English', '🇨🇦'),
|
|
|
|
('en-US', 'English', 'United States', 'English', '🇺🇸'),
|
|
|
|
..
|
|
|
|
('fr', 'Français', '', 'French', '🌐'),
|
|
|
|
('fr-BE', 'Français', 'Belgique', 'French', '🇧🇪'),
|
|
|
|
('fr-CA', 'Français', 'Canada', 'French', '🇨🇦'),
|
|
|
|
|
|
|
|
:meta hide-value:
|
|
|
|
'''
|