4.5. Locale Enums
4.5.1. Django TextChoices for Country
from django.db import models
from django.utils.translation import gettext_lazy as _
class Country(models.TextChoices):
AD = 'AD', _("Andorra")
AE = 'AE', _("United Arab Emirates")
AF = 'AF', _("Afghanistan")
AG = 'AG', _("Antigua and Barbuda")
AI = 'AI', _("Anguilla")
AL = 'AL', _("Albania")
AM = 'AM', _("Armenia")
AO = 'AO', _("Angola")
AQ = 'AQ', _("Antarctica")
AR = 'AR', _("Argentina")
AS = 'AS', _("American Samoa")
AT = 'AT', _("Austria")
AU = 'AU', _("Australia")
AW = 'AW', _("Aruba")
AX = 'AX', _("Åland Islands")
AZ = 'AZ', _("Azerbaijan")
BA = 'BA', _("Bosnia and Herzegovina")
BB = 'BB', _("Barbados")
BD = 'BD', _("Bangladesh")
BE = 'BE', _("Belgium")
BF = 'BF', _("Burkina Faso")
BG = 'BG', _("Bulgaria")
BH = 'BH', _("Bahrain")
BI = 'BI', _("Burundi")
BJ = 'BJ', _("Benin")
BL = 'BL', _("Saint Barthélemy")
BM = 'BM', _("Bermuda")
BN = 'BN', _("Brunei Darussalam")
BO = 'BO', _("Bolivia (Plurinational State of)")
BQ = 'BQ', _("Bonaire, Sint Eustatius and Saba")
BR = 'BR', _("Brazil")
BS = 'BS', _("Bahamas")
BT = 'BT', _("Bhutan")
BV = 'BV', _("Bouvet Island")
BW = 'BW', _("Botswana")
BY = 'BY', _("Belarus")
BZ = 'BZ', _("Belize")
CA = 'CA', _("Canada")
CC = 'CC', _("Cocos (Keeling) Islands")
CD = 'CD', _("Congo (the Democratic Republic of the)")
CF = 'CF', _("Central African Republic")
CG = 'CG', _("Congo")
CH = 'CH', _("Switzerland")
CI = 'CI', _("Côte d'Ivoire")
CK = 'CK', _("Cook Islands")
CL = 'CL', _("Chile")
CM = 'CM', _("Cameroon")
CN = 'CN', _("China")
CO = 'CO', _("Colombia")
CR = 'CR', _("Costa Rica")
CU = 'CU', _("Cuba")
CV = 'CV', _("Cabo Verde")
CW = 'CW', _("Curaçao")
CX = 'CX', _("Christmas Island")
CY = 'CY', _("Cyprus")
CZ = 'CZ', _("Czechia")
DE = 'DE', _("Germany")
DJ = 'DJ', _("Djibouti")
DK = 'DK', _("Denmark")
DM = 'DM', _("Dominica")
DO = 'DO', _("Dominican Republic")
DZ = 'DZ', _("Algeria")
EC = 'EC', _("Ecuador")
EE = 'EE', _("Estonia")
EG = 'EG', _("Egypt")
EH = 'EH', _("Western Sahara")
ER = 'ER', _("Eritrea")
ES = 'ES', _("Spain")
ET = 'ET', _("Ethiopia")
FI = 'FI', _("Finland")
FJ = 'FJ', _("Fiji")
FK = 'FK', _("Falkland Islands (Malvinas)")
FM = 'FM', _("Micronesia (Federated States of)")
FO = 'FO', _("Faroe Islands")
FR = 'FR', _("France")
GA = 'GA', _("Gabon")
GB = 'GB', _("United Kingdom of Great Britain and Northern Ireland")
GD = 'GD', _("Grenada")
GE = 'GE', _("Georgia")
GF = 'GF', _("French Guiana")
GG = 'GG', _("Guernsey")
GH = 'GH', _("Ghana")
GI = 'GI', _("Gibraltar")
GL = 'GL', _("Greenland")
GM = 'GM', _("Gambia")
GN = 'GN', _("Guinea")
GP = 'GP', _("Guadeloupe")
GQ = 'GQ', _("Equatorial Guinea")
GR = 'GR', _("Greece")
GS = 'GS', _("South Georgia and the South Sandwich Islands")
GT = 'GT', _("Guatemala")
GU = 'GU', _("Guam")
GW = 'GW', _("Guinea-Bissau")
GY = 'GY', _("Guyana")
HK = 'HK', _("Hong Kong")
HM = 'HM', _("Heard Island and McDonald Islands")
HN = 'HN', _("Honduras")
HR = 'HR', _("Croatia")
HT = 'HT', _("Haiti")
HU = 'HU', _("Hungary")
ID = 'ID', _("Indonesia")
IE = 'IE', _("Ireland")
IL = 'IL', _("Israel")
IM = 'IM', _("Isle of Man")
IN = 'IN', _("India")
IO = 'IO', _("British Indian Ocean Territory")
IQ = 'IQ', _("Iraq")
IR = 'IR', _("Iran (Islamic Republic of)")
IS = 'IS', _("Iceland")
IT = 'IT', _("Italy")
JE = 'JE', _("Jersey")
JM = 'JM', _("Jamaica")
JO = 'JO', _("Jordan")
JP = 'JP', _("Japan")
KE = 'KE', _("Kenya")
KG = 'KG', _("Kyrgyzstan")
KH = 'KH', _("Cambodia")
KI = 'KI', _("Kiribati")
KM = 'KM', _("Comoros")
KN = 'KN', _("Saint Kitts and Nevis")
KP = 'KP', _("Korea (the Democratic People's Republic of)")
KR = 'KR', _("Korea (the Republic of)")
KW = 'KW', _("Kuwait")
KY = 'KY', _("Cayman Islands")
KZ = 'KZ', _("Kazakhstan")
LA = 'LA', _("Lao People's Democratic Republic")
LB = 'LB', _("Lebanon")
LC = 'LC', _("Saint Lucia")
LI = 'LI', _("Liechtenstein")
LK = 'LK', _("Sri Lanka")
LR = 'LR', _("Liberia")
LS = 'LS', _("Lesotho")
LT = 'LT', _("Lithuania")
LU = 'LU', _("Luxembourg")
LV = 'LV', _("Latvia")
LY = 'LY', _("Libya")
MA = 'MA', _("Morocco")
MC = 'MC', _("Monaco")
MD = 'MD', _("Moldova (the Republic of)")
ME = 'ME', _("Montenegro")
MF = 'MF', _("Saint Martin (French part)")
MG = 'MG', _("Madagascar")
MH = 'MH', _("Marshall Islands")
MK = 'MK', _("North Macedonia")
ML = 'ML', _("Mali")
MM = 'MM', _("Myanmar")
MN = 'MN', _("Mongolia")
MO = 'MO', _("Macao")
MP = 'MP', _("Northern Mariana Islands")
MQ = 'MQ', _("Martinique")
MR = 'MR', _("Mauritania")
MS = 'MS', _("Montserrat")
MT = 'MT', _("Malta")
MU = 'MU', _("Mauritius")
MV = 'MV', _("Maldives")
MW = 'MW', _("Malawi")
MX = 'MX', _("Mexico")
MY = 'MY', _("Malaysia")
MZ = 'MZ', _("Mozambique")
NA = 'NA', _("Namibia")
NC = 'NC', _("New Caledonia")
NE = 'NE', _("Niger")
NF = 'NF', _("Norfolk Island")
NG = 'NG', _("Nigeria")
NI = 'NI', _("Nicaragua")
NL = 'NL', _("Netherlands")
NO = 'NO', _("Norway")
NP = 'NP', _("Nepal")
NR = 'NR', _("Nauru")
NU = 'NU', _("Niue")
NZ = 'NZ', _("New Zealand")
OM = 'OM', _("Oman")
PA = 'PA', _("Panama")
PE = 'PE', _("Peru")
PF = 'PF', _("French Polynesia")
PG = 'PG', _("Papua New Guinea")
PH = 'PH', _("Philippines")
PK = 'PK', _("Pakistan")
PL = 'PL', _("Poland")
PM = 'PM', _("Saint Pierre and Miquelon")
PN = 'PN', _("Pitcairn")
PR = 'PR', _("Puerto Rico")
PS = 'PS', _("Palestine, State of")
PT = 'PT', _("Portugal")
PW = 'PW', _("Palau")
PY = 'PY', _("Paraguay")
QA = 'QA', _("Qatar")
RE = 'RE', _("Réunion")
RO = 'RO', _("Romania")
RS = 'RS', _("Serbia")
RU = 'RU', _("Russian Federation")
RW = 'RW', _("Rwanda")
SA = 'SA', _("Saudi Arabia")
SB = 'SB', _("Solomon Islands")
SC = 'SC', _("Seychelles")
SD = 'SD', _("Sudan")
SE = 'SE', _("Sweden")
SG = 'SG', _("Singapore")
SH = 'SH', _("Saint Helena, Ascension and Tristan da Cunha")
SI = 'SI', _("Slovenia")
SJ = 'SJ', _("Svalbard and Jan Mayen")
SK = 'SK', _("Slovakia")
SL = 'SL', _("Sierra Leone")
SM = 'SM', _("San Marino")
SN = 'SN', _("Senegal")
SO = 'SO', _("Somalia")
SR = 'SR', _("Suriname")
SS = 'SS', _("South Sudan")
ST = 'ST', _("Sao Tome and Principe")
SV = 'SV', _("El Salvador")
SX = 'SX', _("Sint Maarten (Dutch part)")
SY = 'SY', _("Syrian Arab Republic")
SZ = 'SZ', _("Eswatini")
TC = 'TC', _("Turks and Caicos Islands")
TD = 'TD', _("Chad")
TF = 'TF', _("French Southern Territories")
TG = 'TG', _("Togo")
TH = 'TH', _("Thailand")
TJ = 'TJ', _("Tajikistan")
TK = 'TK', _("Tokelau")
TL = 'TL', _("Timor-Leste")
TM = 'TM', _("Turkmenistan")
TN = 'TN', _("Tunisia")
TO = 'TO', _("Tonga")
TR = 'TR', _("Türkiye")
TT = 'TT', _("Trinidad and Tobago")
TV = 'TV', _("Tuvalu")
TW = 'TW', _("Taiwan (Province of China)")
TZ = 'TZ', _("Tanzania, the United Republic of")
UA = 'UA', _("Ukraine")
UG = 'UG', _("Uganda")
UM = 'UM', _("United States Minor Outlying Islands")
US = 'US', _("United States of America")
UY = 'UY', _("Uruguay")
UZ = 'UZ', _("Uzbekistan")
VA = 'VA', _("Holy See")
VC = 'VC', _("Saint Vincent and the Grenadines")
VE = 'VE', _("Venezuela (Bolivarian Republic of)")
VG = 'VG', _("Virgin Islands (British)")
VI = 'VI', _("Virgin Islands (U.S.)")
VN = 'VN', _("Viet Nam")
VU = 'VU', _("Vanuatu")
WF = 'WF', _("Wallis and Futuna")
WS = 'WS', _("Samoa")
YE = 'YE', _("Yemen")
YT = 'YT', _("Mayotte")
ZA = 'ZA', _("South Africa")
ZM = 'ZM', _("Zambia")
ZW = 'ZW', _("Zimbabwe")
4.5.2. Django TextChoices for Currency
from django.db import models
from django.utils.translation import gettext_lazy as _
class Currency(models.TextChoices):
AED = 'AED', _('United Arab Emirates Dirham')
AFN = 'AFN', _('Afghan Afghani')
ALL = 'ALL', _('Albanian Lek')
AMD = 'AMD', _('Armenian Dram')
ANG = 'ANG', _('Netherlands Antillean Guilder')
AOA = 'AOA', _('Angolan Kwanza')
ARS = 'ARS', _('Argentine Peso')
AUD = 'AUD', _('Australian Dollar')
AWG = 'AWG', _('Aruban Florin')
AZN = 'AZN', _('Azerbaijani Manat')
BAM = 'BAM', _('Bosnia-Herzegovina Convertible Mark')
BBD = 'BBD', _('Barbadian Dollar')
BDT = 'BDT', _('Bangladeshi Taka')
BGN = 'BGN', _('Bulgarian Lev')
BHD = 'BHD', _('Bahraini Dinar')
BIF = 'BIF', _('Burundian Franc')
BMD = 'BMD', _('Bermudan Dollar')
BND = 'BND', _('Brunei Dollar')
BOB = 'BOB', _('Bolivian Boliviano')
BRL = 'BRL', _('Brazilian Real')
BSD = 'BSD', _('Bahamian Dollar')
BTC = 'BTC', _('Bitcoin')
BTN = 'BTN', _('Bhutanese Ngultrum')
BWP = 'BWP', _('Botswanan Pula')
BYN = 'BYN', _('Belarusian Ruble')
BZD = 'BZD', _('Belize Dollar')
CAD = 'CAD', _('Canadian Dollar')
CDF = 'CDF', _('Congolese Franc')
CHF = 'CHF', _('Swiss Franc')
CLF = 'CLF', _('Chilean Unit of Account (UF)')
CLP = 'CLP', _('Chilean Peso')
CNH = 'CNH', _('Chinese Yuan (Offshore)')
CNY = 'CNY', _('Chinese Yuan')
COP = 'COP', _('Colombian Peso')
CRC = 'CRC', _('Costa Rican Colón')
CUC = 'CUC', _('Cuban Convertible Peso')
CUP = 'CUP', _('Cuban Peso')
CVE = 'CVE', _('Cape Verdean Escudo')
CZK = 'CZK', _('Czech Republic Koruna')
DJF = 'DJF', _('Djiboutian Franc')
DKK = 'DKK', _('Danish Krone')
DOP = 'DOP', _('Dominican Peso')
DZD = 'DZD', _('Algerian Dinar')
EGP = 'EGP', _('Egyptian Pound')
ERN = 'ERN', _('Eritrean Nakfa')
ETB = 'ETB', _('Ethiopian Birr')
EUR = 'EUR', _('Euro')
FJD = 'FJD', _('Fijian Dollar')
FKP = 'FKP', _('Falkland Islands Pound')
GBP = 'GBP', _('British Pound Sterling')
GEL = 'GEL', _('Georgian Lari')
GGP = 'GGP', _('Guernsey Pound')
GHS = 'GHS', _('Ghanaian Cedi')
GIP = 'GIP', _('Gibraltar Pound')
GMD = 'GMD', _('Gambian Dalasi')
GNF = 'GNF', _('Guinean Franc')
GTQ = 'GTQ', _('Guatemalan Quetzal')
GYD = 'GYD', _('Guyanaese Dollar')
HKD = 'HKD', _('Hong Kong Dollar')
HNL = 'HNL', _('Honduran Lempira')
HRK = 'HRK', _('Croatian Kuna')
HTG = 'HTG', _('Haitian Gourde')
HUF = 'HUF', _('Hungarian Forint')
IDR = 'IDR', _('Indonesian Rupiah')
ILS = 'ILS', _('Israeli New Sheqel')
IMP = 'IMP', _('Manx pound')
INR = 'INR', _('Indian Rupee')
IQD = 'IQD', _('Iraqi Dinar')
IRR = 'IRR', _('Iranian Rial')
ISK = 'ISK', _('Icelandic Króna')
JEP = 'JEP', _('Jersey Pound')
JMD = 'JMD', _('Jamaican Dollar')
JOD = 'JOD', _('Jordanian Dinar')
JPY = 'JPY', _('Japanese Yen')
KES = 'KES', _('Kenyan Shilling')
KGS = 'KGS', _('Kyrgystani Som')
KHR = 'KHR', _('Cambodian Riel')
KMF = 'KMF', _('Comorian Franc')
KPW = 'KPW', _('North Korean Won')
KRW = 'KRW', _('South Korean Won')
KWD = 'KWD', _('Kuwaiti Dinar')
KYD = 'KYD', _('Cayman Islands Dollar')
KZT = 'KZT', _('Kazakhstani Tenge')
LAK = 'LAK', _('Laotian Kip')
LBP = 'LBP', _('Lebanese Pound')
LKR = 'LKR', _('Sri Lankan Rupee')
LRD = 'LRD', _('Liberian Dollar')
LSL = 'LSL', _('Lesotho Loti')
LYD = 'LYD', _('Libyan Dinar')
MAD = 'MAD', _('Moroccan Dirham')
MDL = 'MDL', _('Moldovan Leu')
MGA = 'MGA', _('Malagasy Ariary')
MKD = 'MKD', _('Macedonian Denar')
MMK = 'MMK', _('Myanma Kyat')
MNT = 'MNT', _('Mongolian Tugrik')
MOP = 'MOP', _('Macanese Pataca')
MRU = 'MRU', _('Mauritanian Ouguiya')
MUR = 'MUR', _('Mauritian Rupee')
MVR = 'MVR', _('Maldivian Rufiyaa')
MWK = 'MWK', _('Malawian Kwacha')
MXN = 'MXN', _('Mexican Peso')
MYR = 'MYR', _('Malaysian Ringgit')
MZN = 'MZN', _('Mozambican Metical')
NAD = 'NAD', _('Namibian Dollar')
NGN = 'NGN', _('Nigerian Naira')
NIO = 'NIO', _('Nicaraguan Córdoba')
NOK = 'NOK', _('Norwegian Krone')
NPR = 'NPR', _('Nepalese Rupee')
NZD = 'NZD', _('New Zealand Dollar')
OMR = 'OMR', _('Omani Rial')
PAB = 'PAB', _('Panamanian Balboa')
PEN = 'PEN', _('Peruvian Nuevo Sol')
PGK = 'PGK', _('Papua New Guinean Kina')
PHP = 'PHP', _('Philippine Peso')
PKR = 'PKR', _('Pakistani Rupee')
PLN = 'PLN', _('Polish Zloty')
PYG = 'PYG', _('Paraguayan Guarani')
QAR = 'QAR', _('Qatari Rial')
RON = 'RON', _('Romanian Leu')
RSD = 'RSD', _('Serbian Dinar')
RUB = 'RUB', _('Russian Ruble')
RWF = 'RWF', _('Rwandan Franc')
SAR = 'SAR', _('Saudi Riyal')
SBD = 'SBD', _('Solomon Islands Dollar')
SCR = 'SCR', _('Seychellois Rupee')
SDG = 'SDG', _('Sudanese Pound')
SEK = 'SEK', _('Swedish Krona')
SGD = 'SGD', _('Singapore Dollar')
SHP = 'SHP', _('Saint Helena Pound')
SLL = 'SLL', _('Sierra Leonean Leone')
SOS = 'SOS', _('Somali Shilling')
SRD = 'SRD', _('Surinamese Dollar')
SSP = 'SSP', _('South Sudanese Pound')
STD = 'STD', _('São Tomé and Príncipe Dobra (pre-2018)')
STN = 'STN', _('São Tomé and Príncipe Dobra')
SVC = 'SVC', _('Salvadoran Colón')
SYP = 'SYP', _('Syrian Pound')
SZL = 'SZL', _('Swazi Lilangeni')
THB = 'THB', _('Thai Baht')
TJS = 'TJS', _('Tajikistani Somoni')
TMT = 'TMT', _('Turkmenistani Manat')
TND = 'TND', _('Tunisian Dinar')
TOP = 'TOP', _("Tongan Pa'anga")
TRY = 'TRY', _('Turkish Lira')
TTD = 'TTD', _('Trinidad and Tobago Dollar')
TWD = 'TWD', _('New Taiwan Dollar')
TZS = 'TZS', _('Tanzanian Shilling')
UAH = 'UAH', _('Ukrainian Hryvnia')
UGX = 'UGX', _('Ugandan Shilling')
USD = 'USD', _('United States Dollar')
UYU = 'UYU', _('Uruguayan Peso')
UZS = 'UZS', _('Uzbekistan Som')
VEF = 'VEF', _('Venezuelan Bolívar Fuerte (Old)')
VES = 'VES', _('Venezuelan Bolívar Soberano')
VND = 'VND', _('Vietnamese Dong')
VUV = 'VUV', _('Vanuatu Vatu')
WST = 'WST', _('Samoan Tala')
XAF = 'XAF', _('CFA Franc BEAC')
XAG = 'XAG', _('Silver Ounce')
XAU = 'XAU', _('Gold Ounce')
XCD = 'XCD', _('East Caribbean Dollar')
XDR = 'XDR', _('Special Drawing Rights')
XOF = 'XOF', _('CFA Franc BCEAO')
XPD = 'XPD', _('Palladium Ounce')
XPF = 'XPF', _('CFP Franc')
XPT = 'XPT', _('Platinum Ounce')
YER = 'YER', _('Yemeni Rial')
ZAR = 'ZAR', _('South African Rand')
ZMW = 'ZMW', _('Zambian Kwacha')
ZWL = 'ZWL', _('Zimbabwean Dolla')
4.5.3. Django TextChoices for Language
from django.db import models
from django.utils.translation import gettext_lazy as _
class Language(models.TextChoices):
AA = 'AA', _('Afar')
AB = 'AB', _('Abkhaz')
AE = 'AE', _('Avestan')
AF = 'AF', _('Afrikaans')
AK = 'AK', _('Akan')
AM = 'AM', _('Amharic')
AN = 'AN', _('Aragonese')
AR = 'AR', _('Arabic')
AS = 'AS', _('Assamese')
AV = 'AV', _('Avaric')
AY = 'AY', _('Aymara')
AZ = 'AZ', _('Azerbaijani')
BA = 'BA', _('Bashkir')
BE = 'BE', _('Belarusian')
BG = 'BG', _('Bulgarian')
BH = 'BH', _('Bihari')
BI = 'BI', _('Bislama')
BM = 'BM', _('Bambara')
BN = 'BN', _('Bengali')
BO = 'BO', _('Tibetan')
BR = 'BR', _('Breton')
BS = 'BS', _('Bosnian')
CA = 'CA', _('Catalan')
CE = 'CE', _('Chechen')
CH = 'CH', _('Chamorro')
CO = 'CO', _('Corsican')
CR = 'CR', _('Cree')
CS = 'CS', _('Czech')
CU = 'CU', _('Church Slavic')
CV = 'CV', _('Chuvash')
CY = 'CY', _('Welsh')
DA = 'DA', _('Danish')
DE = 'DE', _('German')
DV = 'DV', _('Divehi')
EE = 'EE', _('Ewe')
EL = 'EL', _('Greek')
EN = 'EN', _('English')
EO = 'EO', _('Esperanto')
ES = 'ES', _('Spanish')
ET = 'ET', _('Estonian')
EU = 'EU', _('Basque')
FA = 'FA', _('Persian')
FF = 'FF', _('Fula')
FI = 'FI', _('Finnish')
FJ = 'FJ', _('Fijian')
FO = 'FO', _('Faroese')
FR = 'FR', _('French')
FY = 'FY', _('Frisian')
GA = 'GA', _('Irish')
GD = 'GD', _('Gaelic')
GL = 'GL', _('Galician')
GN = 'GN', _('Guaraní')
GU = 'GU', _('Gujarati')
GV = 'GV', _('Manx')
HA = 'HA', _('Hausa')
HE = 'HE', _('Hebrew')
HI = 'HI', _('Hindi')
HO = 'HO', _('Hiri Motu')
HR = 'HR', _('Croatian')
HT = 'HT', _('Haitian')
HU = 'HU', _('Hungarian')
HY = 'HY', _('Armenian')
HZ = 'HZ', _('Herero')
IA = 'IA', _('Interlingua')
ID = 'ID', _('Indonesian')
IE = 'IE', _('Interlingue')
IG = 'IG', _('Igbo')
II = 'II', _('Nuosu')
IK = 'IK', _('Inupiaq')
IO = 'IO', _('Ido')
IS = 'IS', _('Icelandic')
IT = 'IT', _('Italian')
IU = 'IU', _('Inuktitut')
JA = 'JA', _('Japanese')
JV = 'JV', _('Javanese')
KA = 'KA', _('Georgian')
KG = 'KG', _('Kongo')
KI = 'KI', _('Kikuyu')
KJ = 'KJ', _('Kwanyama')
KK = 'KK', _('Kazakh')
KL = 'KL', _('Kalaallisut')
KM = 'KM', _('Khmer')
KN = 'KN', _('Kannada')
KO = 'KO', _('Korean')
KR = 'KR', _('Kanuri')
KS = 'KS', _('Kashmiri')
KU = 'KU', _('Kurdish')
KV = 'KV', _('Komi')
KW = 'KW', _('Cornish')
KY = 'KY', _('Kirghiz')
LA = 'LA', _('Latin')
LB = 'LB', _('Luxembourgish')
LG = 'LG', _('Luganda')
LI = 'LI', _('Limburgish')
LN = 'LN', _('Lingala')
LO = 'LO', _('Lao')
LT = 'LT', _('Lithuanian')
LU = 'LU', _('Luba-Katanga')
LV = 'LV', _('Latvian')
MG = 'MG', _('Malagasy')
MH = 'MH', _('Marshallese')
MI = 'MI', _('Māori')
MK = 'MK', _('Macedonian')
ML = 'ML', _('Malayalam')
MN = 'MN', _('Mongolian')
MR = 'MR', _('Marathi')
MS = 'MS', _('Malay')
MT = 'MT', _('Maltese')
MY = 'MY', _('Burmese')
NA = 'NA', _('Nauru')
NB = 'NB', _('Bokmål')
ND = 'ND', _('Ndebele')
NE = 'NE', _('Nepali')
NG = 'NG', _('Ndonga')
NL = 'NL', _('Dutch')
NN = 'NN', _('Nynorsk')
NO = 'NO', _('Norwegian')
NR = 'NR', _('Ndebele')
NV = 'NV', _('Navajo')
NY = 'NY', _('Chichewa')
OC = 'OC', _('Occitan')
OJ = 'OJ', _('Ojibwe')
OM = 'OM', _('Oromo')
OR = 'OR', _('Oriya')
OS = 'OS', _('Ossetian')
PA = 'PA', _('Panjabi')
PI = 'PI', _('Pāli')
PL = 'PL', _('Polish')
PS = 'PS', _('Pashto')
PT = 'PT', _('Portuguese')
QU = 'QU', _('Quechua')
RM = 'RM', _('Romansh')
RN = 'RN', _('Kirundi')
RO = 'RO', _('Romanian')
RU = 'RU', _('Russian')
RW = 'RW', _('Kinyarwanda')
SA = 'SA', _('Sanskrit')
SC = 'SC', _('Sardinian')
SD = 'SD', _('Sindhi')
SE = 'SE', _('Sami')
SG = 'SG', _('Sango')
SI = 'SI', _('Sinhala')
SK = 'SK', _('Slovak')
SL = 'SL', _('Slovene')
SM = 'SM', _('Samoan')
SN = 'SN', _('Shona')
SO = 'SO', _('Somali')
SQ = 'SQ', _('Albanian')
SR = 'SR', _('Serbian')
SS = 'SS', _('Swati')
ST = 'ST', _('Sotho')
SU = 'SU', _('Sundanese')
SV = 'SV', _('Swedish')
SW = 'SW', _('Swahili')
TA = 'TA', _('Tamil')
TE = 'TE', _('Telugu')
TG = 'TG', _('Tajik')
TH = 'TH', _('Thai')
TI = 'TI', _('Tigrinya')
TK = 'TK', _('Turkmen')
TL = 'TL', _('Tagalog')
TN = 'TN', _('Tswana')
TO = 'TO', _('Tonga')
TR = 'TR', _('Turkish')
TS = 'TS', _('Tsonga')
TT = 'TT', _('Tatar')
TW = 'TW', _('Twi')
TY = 'TY', _('Tahitian')
UG = 'UG', _('Uighur')
UK = 'UK', _('Ukrainian')
UR = 'UR', _('Urdu')
UZ = 'UZ', _('Uzbek')
VE = 'VE', _('Venda')
VI = 'VI', _('Vietnamese')
VO = 'VO', _('Volapük')
WA = 'WA', _('Walloon')
WO = 'WO', _('Wolof')
XH = 'XH', _('Xhosa')
YI = 'YI', _('Yiddish')
YO = 'YO', _('Yoruba')
ZA = 'ZA', _('Zhuang')
ZH = 'ZH', _('Chinese')
4.5.4. Python Enum for Country
from enum import StrEnum
class Country(StrEnum):
AD = "Andorra"
AE = "United Arab Emirates"
AF = "Afghanistan"
AG = "Antigua and Barbuda"
AI = "Anguilla"
AL = "Albania"
AM = "Armenia"
AO = "Angola"
AQ = "Antarctica"
AR = "Argentina"
AS = "American Samoa"
AT = "Austria"
AU = "Australia"
AW = "Aruba"
AX = "Åland Islands"
AZ = "Azerbaijan"
BA = "Bosnia and Herzegovina"
BB = "Barbados"
BD = "Bangladesh"
BE = "Belgium"
BF = "Burkina Faso"
BG = "Bulgaria"
BH = "Bahrain"
BI = "Burundi"
BJ = "Benin"
BL = "Saint Barthélemy"
BM = "Bermuda"
BN = "Brunei Darussalam"
BO = "Bolivia (Plurinational State of)"
BQ = "Bonaire, Sint Eustatius and Saba"
BR = "Brazil"
BS = "Bahamas"
BT = "Bhutan"
BV = "Bouvet Island"
BW = "Botswana"
BY = "Belarus"
BZ = "Belize"
CA = "Canada"
CC = "Cocos (Keeling) Islands"
CD = "Congo (the Democratic Republic of the)"
CF = "Central African Republic"
CG = "Congo"
CH = "Switzerland"
CI = "Côte d'Ivoire"
CK = "Cook Islands"
CL = "Chile"
CM = "Cameroon"
CN = "China"
CO = "Colombia"
CR = "Costa Rica"
CU = "Cuba"
CV = "Cabo Verde"
CW = "Curaçao"
CX = "Christmas Island"
CY = "Cyprus"
CZ = "Czechia"
DE = "Germany"
DJ = "Djibouti"
DK = "Denmark"
DM = "Dominica"
DO = "Dominican Republic"
DZ = "Algeria"
EC = "Ecuador"
EE = "Estonia"
EG = "Egypt"
EH = "Western Sahara"
ER = "Eritrea"
ES = "Spain"
ET = "Ethiopia"
FI = "Finland"
FJ = "Fiji"
FK = "Falkland Islands (Malvinas)"
FM = "Micronesia (Federated States of)"
FO = "Faroe Islands"
FR = "France"
GA = "Gabon"
GB = "United Kingdom of Great Britain and Northern Ireland"
GD = "Grenada"
GE = "Georgia"
GF = "French Guiana"
GG = "Guernsey"
GH = "Ghana"
GI = "Gibraltar"
GL = "Greenland"
GM = "Gambia"
GN = "Guinea"
GP = "Guadeloupe"
GQ = "Equatorial Guinea"
GR = "Greece"
GS = "South Georgia and the South Sandwich Islands"
GT = "Guatemala"
GU = "Guam"
GW = "Guinea-Bissau"
GY = "Guyana"
HK = "Hong Kong"
HM = "Heard Island and McDonald Islands"
HN = "Honduras"
HR = "Croatia"
HT = "Haiti"
HU = "Hungary"
ID = "Indonesia"
IE = "Ireland"
IL = "Israel"
IM = "Isle of Man"
IN = "India"
IO = "British Indian Ocean Territory"
IQ = "Iraq"
IR = "Iran (Islamic Republic of)"
IS = "Iceland"
IT = "Italy"
JE = "Jersey"
JM = "Jamaica"
JO = "Jordan"
JP = "Japan"
KE = "Kenya"
KG = "Kyrgyzstan"
KH = "Cambodia"
KI = "Kiribati"
KM = "Comoros"
KN = "Saint Kitts and Nevis"
KP = "Korea (the Democratic People's Republic of)"
KR = "Korea (the Republic of)"
KW = "Kuwait"
KY = "Cayman Islands"
KZ = "Kazakhstan"
LA = "Lao People's Democratic Republic"
LB = "Lebanon"
LC = "Saint Lucia"
LI = "Liechtenstein"
LK = "Sri Lanka"
LR = "Liberia"
LS = "Lesotho"
LT = "Lithuania"
LU = "Luxembourg"
LV = "Latvia"
LY = "Libya"
MA = "Morocco"
MC = "Monaco"
MD = "Moldova (the Republic of)"
ME = "Montenegro"
MF = "Saint Martin (French part)"
MG = "Madagascar"
MH = "Marshall Islands"
MK = "North Macedonia"
ML = "Mali"
MM = "Myanmar"
MN = "Mongolia"
MO = "Macao"
MP = "Northern Mariana Islands"
MQ = "Martinique"
MR = "Mauritania"
MS = "Montserrat"
MT = "Malta"
MU = "Mauritius"
MV = "Maldives"
MW = "Malawi"
MX = "Mexico"
MY = "Malaysia"
MZ = "Mozambique"
NA = "Namibia"
NC = "New Caledonia"
NE = "Niger"
NF = "Norfolk Island"
NG = "Nigeria"
NI = "Nicaragua"
NL = "Netherlands"
NO = "Norway"
NP = "Nepal"
NR = "Nauru"
NU = "Niue"
NZ = "New Zealand"
OM = "Oman"
PA = "Panama"
PE = "Peru"
PF = "French Polynesia"
PG = "Papua New Guinea"
PH = "Philippines"
PK = "Pakistan"
PL = "Poland"
PM = "Saint Pierre and Miquelon"
PN = "Pitcairn"
PR = "Puerto Rico"
PS = "Palestine, State of"
PT = "Portugal"
PW = "Palau"
PY = "Paraguay"
QA = "Qatar"
RE = "Réunion"
RO = "Romania"
RS = "Serbia"
RU = "Russian Federation"
RW = "Rwanda"
SA = "Saudi Arabia"
SB = "Solomon Islands"
SC = "Seychelles"
SD = "Sudan"
SE = "Sweden"
SG = "Singapore"
SH = "Saint Helena, Ascension and Tristan da Cunha"
SI = "Slovenia"
SJ = "Svalbard and Jan Mayen"
SK = "Slovakia"
SL = "Sierra Leone"
SM = "San Marino"
SN = "Senegal"
SO = "Somalia"
SR = "Suriname"
SS = "South Sudan"
ST = "Sao Tome and Principe"
SV = "El Salvador"
SX = "Sint Maarten (Dutch part)"
SY = "Syrian Arab Republic"
SZ = "Eswatini"
TC = "Turks and Caicos Islands"
TD = "Chad"
TF = "French Southern Territories"
TG = "Togo"
TH = "Thailand"
TJ = "Tajikistan"
TK = "Tokelau"
TL = "Timor-Leste"
TM = "Turkmenistan"
TN = "Tunisia"
TO = "Tonga"
TR = "Türkiye"
TT = "Trinidad and Tobago"
TV = "Tuvalu"
TW = "Taiwan (Province of China)"
TZ = "Tanzania, the United Republic of"
UA = "Ukraine"
UG = "Uganda"
UM = "United States Minor Outlying Islands"
US = "United States of America"
UY = "Uruguay"
UZ = "Uzbekistan"
VA = "Holy See"
VC = "Saint Vincent and the Grenadines"
VE = "Venezuela (Bolivarian Republic of)"
VG = "Virgin Islands (British)"
VI = "Virgin Islands (U.S.)"
VN = "Viet Nam"
VU = "Vanuatu"
WF = "Wallis and Futuna"
WS = "Samoa"
YE = "Yemen"
YT = "Mayotte"
ZA = "South Africa"
ZM = "Zambia"
ZW = "Zimbabwe"
4.5.5. Python Enum for Currency
from enum import StrEnum
class Currency(StrEnum):
AED = 'United Arab Emirates Dirham'
AFN = 'Afghan Afghani'
ALL = 'Albanian Lek'
AMD = 'Armenian Dram'
ANG = 'Netherlands Antillean Guilder'
AOA = 'Angolan Kwanza'
ARS = 'Argentine Peso'
AUD = 'Australian Dollar'
AWG = 'Aruban Florin'
AZN = 'Azerbaijani Manat'
BAM = 'Bosnia-Herzegovina Convertible Mark'
BBD = 'Barbadian Dollar'
BDT = 'Bangladeshi Taka'
BGN = 'Bulgarian Lev'
BHD = 'Bahraini Dinar'
BIF = 'Burundian Franc'
BMD = 'Bermudan Dollar'
BND = 'Brunei Dollar'
BOB = 'Bolivian Boliviano'
BRL = 'Brazilian Real'
BSD = 'Bahamian Dollar'
BTC = 'Bitcoin'
BTN = 'Bhutanese Ngultrum'
BWP = 'Botswanan Pula'
BYN = 'Belarusian Ruble'
BZD = 'Belize Dollar'
CAD = 'Canadian Dollar'
CDF = 'Congolese Franc'
CHF = 'Swiss Franc'
CLF = 'Chilean Unit of Account (UF)'
CLP = 'Chilean Peso'
CNH = 'Chinese Yuan (Offshore)'
CNY = 'Chinese Yuan'
COP = 'Colombian Peso'
CRC = 'Costa Rican Colón'
CUC = 'Cuban Convertible Peso'
CUP = 'Cuban Peso'
CVE = 'Cape Verdean Escudo'
CZK = 'Czech Republic Koruna'
DJF = 'Djiboutian Franc'
DKK = 'Danish Krone'
DOP = 'Dominican Peso'
DZD = 'Algerian Dinar'
EGP = 'Egyptian Pound'
ERN = 'Eritrean Nakfa'
ETB = 'Ethiopian Birr'
EUR = 'Euro'
FJD = 'Fijian Dollar'
FKP = 'Falkland Islands Pound'
GBP = 'British Pound Sterling'
GEL = 'Georgian Lari'
GGP = 'Guernsey Pound'
GHS = 'Ghanaian Cedi'
GIP = 'Gibraltar Pound'
GMD = 'Gambian Dalasi'
GNF = 'Guinean Franc'
GTQ = 'Guatemalan Quetzal'
GYD = 'Guyanaese Dollar'
HKD = 'Hong Kong Dollar'
HNL = 'Honduran Lempira'
HRK = 'Croatian Kuna'
HTG = 'Haitian Gourde'
HUF = 'Hungarian Forint'
IDR = 'Indonesian Rupiah'
ILS = 'Israeli New Sheqel'
IMP = 'Manx pound'
INR = 'Indian Rupee'
IQD = 'Iraqi Dinar'
IRR = 'Iranian Rial'
ISK = 'Icelandic Króna'
JEP = 'Jersey Pound'
JMD = 'Jamaican Dollar'
JOD = 'Jordanian Dinar'
JPY = 'Japanese Yen'
KES = 'Kenyan Shilling'
KGS = 'Kyrgystani Som'
KHR = 'Cambodian Riel'
KMF = 'Comorian Franc'
KPW = 'North Korean Won'
KRW = 'South Korean Won'
KWD = 'Kuwaiti Dinar'
KYD = 'Cayman Islands Dollar'
KZT = 'Kazakhstani Tenge'
LAK = 'Laotian Kip'
LBP = 'Lebanese Pound'
LKR = 'Sri Lankan Rupee'
LRD = 'Liberian Dollar'
LSL = 'Lesotho Loti'
LYD = 'Libyan Dinar'
MAD = 'Moroccan Dirham'
MDL = 'Moldovan Leu'
MGA = 'Malagasy Ariary'
MKD = 'Macedonian Denar'
MMK = 'Myanma Kyat'
MNT = 'Mongolian Tugrik'
MOP = 'Macanese Pataca'
MRU = 'Mauritanian Ouguiya'
MUR = 'Mauritian Rupee'
MVR = 'Maldivian Rufiyaa'
MWK = 'Malawian Kwacha'
MXN = 'Mexican Peso'
MYR = 'Malaysian Ringgit'
MZN = 'Mozambican Metical'
NAD = 'Namibian Dollar'
NGN = 'Nigerian Naira'
NIO = 'Nicaraguan Córdoba'
NOK = 'Norwegian Krone'
NPR = 'Nepalese Rupee'
NZD = 'New Zealand Dollar'
OMR = 'Omani Rial'
PAB = 'Panamanian Balboa'
PEN = 'Peruvian Nuevo Sol'
PGK = 'Papua New Guinean Kina'
PHP = 'Philippine Peso'
PKR = 'Pakistani Rupee'
PLN = 'Polish Zloty'
PYG = 'Paraguayan Guarani'
QAR = 'Qatari Rial'
RON = 'Romanian Leu'
RSD = 'Serbian Dinar'
RUB = 'Russian Ruble'
RWF = 'Rwandan Franc'
SAR = 'Saudi Riyal'
SBD = 'Solomon Islands Dollar'
SCR = 'Seychellois Rupee'
SDG = 'Sudanese Pound'
SEK = 'Swedish Krona'
SGD = 'Singapore Dollar'
SHP = 'Saint Helena Pound'
SLL = 'Sierra Leonean Leone'
SOS = 'Somali Shilling'
SRD = 'Surinamese Dollar'
SSP = 'South Sudanese Pound'
STD = 'São Tomé and Príncipe Dobra (pre-2018)'
STN = 'São Tomé and Príncipe Dobra'
SVC = 'Salvadoran Colón'
SYP = 'Syrian Pound'
SZL = 'Swazi Lilangeni'
THB = 'Thai Baht'
TJS = 'Tajikistani Somoni'
TMT = 'Turkmenistani Manat'
TND = 'Tunisian Dinar'
TOP = "Tongan Pa'anga"
TRY = 'Turkish Lira'
TTD = 'Trinidad and Tobago Dollar'
TWD = 'New Taiwan Dollar'
TZS = 'Tanzanian Shilling'
UAH = 'Ukrainian Hryvnia'
UGX = 'Ugandan Shilling'
USD = 'United States Dollar'
UYU = 'Uruguayan Peso'
UZS = 'Uzbekistan Som'
VEF = 'Venezuelan Bolívar Fuerte (Old)'
VES = 'Venezuelan Bolívar Soberano'
VND = 'Vietnamese Dong'
VUV = 'Vanuatu Vatu'
WST = 'Samoan Tala'
XAF = 'CFA Franc BEAC'
XAG = 'Silver Ounce'
XAU = 'Gold Ounce'
XCD = 'East Caribbean Dollar'
XDR = 'Special Drawing Rights'
XOF = 'CFA Franc BCEAO'
XPD = 'Palladium Ounce'
XPF = 'CFP Franc'
XPT = 'Platinum Ounce'
YER = 'Yemeni Rial'
ZAR = 'South African Rand'
ZMW = 'Zambian Kwacha'
ZWL = 'Zimbabwean Dolla'
4.5.6. Python Enum for Language
from enum import StrEnum
class Language(StrEnum):
AA = 'Afar'
AB = 'Abkhaz'
AE = 'Avestan'
AF = 'Afrikaans'
AK = 'Akan'
AM = 'Amharic'
AN = 'Aragonese'
AR = 'Arabic'
AS = 'Assamese'
AV = 'Avaric'
AY = 'Aymara'
AZ = 'Azerbaijani'
BA = 'Bashkir'
BE = 'Belarusian'
BG = 'Bulgarian'
BH = 'Bihari'
BI = 'Bislama'
BM = 'Bambara'
BN = 'Bengali'
BO = 'Tibetan'
BR = 'Breton'
BS = 'Bosnian'
CA = 'Catalan'
CE = 'Chechen'
CH = 'Chamorro'
CO = 'Corsican'
CR = 'Cree'
CS = 'Czech'
CU = 'Church Slavic'
CV = 'Chuvash'
CY = 'Welsh'
DA = 'Danish'
DE = 'German'
DV = 'Divehi'
EE = 'Ewe'
EL = 'Greek'
EN = 'English'
EO = 'Esperanto'
ES = 'Spanish'
ET = 'Estonian'
EU = 'Basque'
FA = 'Persian'
FF = 'Fula'
FI = 'Finnish'
FJ = 'Fijian'
FO = 'Faroese'
FR = 'French'
FY = 'Frisian'
GA = 'Irish'
GD = 'Gaelic'
GL = 'Galician'
GN = 'Guaraní'
GU = 'Gujarati'
GV = 'Manx'
HA = 'Hausa'
HE = 'Hebrew'
HI = 'Hindi'
HO = 'Hiri Motu'
HR = 'Croatian'
HT = 'Haitian'
HU = 'Hungarian'
HY = 'Armenian'
HZ = 'Herero'
IA = 'Interlingua'
ID = 'Indonesian'
IE = 'Interlingue'
IG = 'Igbo'
II = 'Nuosu'
IK = 'Inupiaq'
IO = 'Ido'
IS = 'Icelandic'
IT = 'Italian'
IU = 'Inuktitut'
JA = 'Japanese'
JV = 'Javanese'
KA = 'Georgian'
KG = 'Kongo'
KI = 'Kikuyu'
KJ = 'Kwanyama'
KK = 'Kazakh'
KL = 'Kalaallisut'
KM = 'Khmer'
KN = 'Kannada'
KO = 'Korean'
KR = 'Kanuri'
KS = 'Kashmiri'
KU = 'Kurdish'
KV = 'Komi'
KW = 'Cornish'
KY = 'Kirghiz'
LA = 'Latin'
LB = 'Luxembourgish'
LG = 'Luganda'
LI = 'Limburgish'
LN = 'Lingala'
LO = 'Lao'
LT = 'Lithuanian'
LU = 'Luba-Katanga'
LV = 'Latvian'
MG = 'Malagasy'
MH = 'Marshallese'
MI = 'Māori'
MK = 'Macedonian'
ML = 'Malayalam'
MN = 'Mongolian'
MR = 'Marathi'
MS = 'Malay'
MT = 'Maltese'
MY = 'Burmese'
NA = 'Nauru'
NB = 'Bokmål'
ND = 'Ndebele'
NE = 'Nepali'
NG = 'Ndonga'
NL = 'Dutch'
NN = 'Nynorsk'
NO = 'Norwegian'
NR = 'Ndebele'
NV = 'Navajo'
NY = 'Chichewa'
OC = 'Occitan'
OJ = 'Ojibwe'
OM = 'Oromo'
OR = 'Oriya'
OS = 'Ossetian'
PA = 'Panjabi'
PI = 'Pāli'
PL = 'Polish'
PS = 'Pashto'
PT = 'Portuguese'
QU = 'Quechua'
RM = 'Romansh'
RN = 'Kirundi'
RO = 'Romanian'
RU = 'Russian'
RW = 'Kinyarwanda'
SA = 'Sanskrit'
SC = 'Sardinian'
SD = 'Sindhi'
SE = 'Sami'
SG = 'Sango'
SI = 'Sinhala'
SK = 'Slovak'
SL = 'Slovene'
SM = 'Samoan'
SN = 'Shona'
SO = 'Somali'
SQ = 'Albanian'
SR = 'Serbian'
SS = 'Swati'
ST = 'Sotho'
SU = 'Sundanese'
SV = 'Swedish'
SW = 'Swahili'
TA = 'Tamil'
TE = 'Telugu'
TG = 'Tajik'
TH = 'Thai'
TI = 'Tigrinya'
TK = 'Turkmen'
TL = 'Tagalog'
TN = 'Tswana'
TO = 'Tonga'
TR = 'Turkish'
TS = 'Tsonga'
TT = 'Tatar'
TW = 'Twi'
TY = 'Tahitian'
UG = 'Uighur'
UK = 'Ukrainian'
UR = 'Urdu'
UZ = 'Uzbek'
VE = 'Venda'
VI = 'Vietnamese'
VO = 'Volapük'
WA = 'Walloon'
WO = 'Wolof'
XH = 'Xhosa'
YI = 'Yiddish'
YO = 'Yoruba'
ZA = 'Zhuang'
ZH = 'Chinese'