sxng_locales.py 7.6 KB

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