feat(marketing): replace language input with Select; update Countries to ISO-3
- Switch language field from text `InputGroup` to `Select` with `Languages` options, `GlobeIcon`, clearable support, and conditional disable/require for companies - Remove manual length validation as Select ensures valid predefined values - Update `Countries` values from ISO-2 to ISO-3 codes for consistency
This commit is contained in:
@@ -6,6 +6,7 @@ import { Select } from "@/components/FormElements/select";
|
|||||||
import { ShowcaseSection } from "@/components/Layouts/showcase-section";
|
import { ShowcaseSection } from "@/components/Layouts/showcase-section";
|
||||||
import Stepper, { Step } from "@/components/ui/Stepper";
|
import Stepper, { Step } from "@/components/ui/Stepper";
|
||||||
import { Countries } from "@/constants/countries";
|
import { Countries } from "@/constants/countries";
|
||||||
|
import { Languages } from "@/constants/languages";
|
||||||
import { FormErrorMessages } from "@/constants/Texts";
|
import { FormErrorMessages } from "@/constants/Texts";
|
||||||
import { BreadcrumbItem } from "@/types/shared";
|
import { BreadcrumbItem } from "@/types/shared";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import { useEffect, useRef, useState } from "react";
|
||||||
@@ -244,31 +245,24 @@ const MarketingForm = ({
|
|||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<InputGroup
|
<Select
|
||||||
{...registerPageType("language", {
|
{...registerPageType("language")}
|
||||||
required: isCompany
|
|
||||||
? { message: FormErrorMessages.required, value: true }
|
|
||||||
: false,
|
|
||||||
minLength: isCompany
|
|
||||||
? { value: 2, message: FormErrorMessages.minLength(2) }
|
|
||||||
: undefined,
|
|
||||||
maxLength: isCompany
|
|
||||||
? { value: 10, message: FormErrorMessages.maxLength(10) }
|
|
||||||
: undefined,
|
|
||||||
})}
|
|
||||||
label="Language"
|
label="Language"
|
||||||
name="language"
|
name="language"
|
||||||
type="text"
|
items={Languages}
|
||||||
placeholder="Enter Language (e.g., en, ar)"
|
defaultValue="en"
|
||||||
|
clearable
|
||||||
|
prefixIcon={<GlobeIcon />}
|
||||||
disabled={!isCompany}
|
disabled={!isCompany}
|
||||||
required={isCompany}
|
required={isCompany}
|
||||||
|
placeholder="Please select language"
|
||||||
|
onClear={() => setValue("language", undefined)}
|
||||||
/>
|
/>
|
||||||
{pageTypeErrors.language && (
|
{pageTypeErrors.language && (
|
||||||
<p className="mt-1 text-sm text-red-500">
|
<p className="mt-1 text-sm text-red-500">
|
||||||
{pageTypeErrors.language.message}
|
{pageTypeErrors.language.message}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<InputGroup
|
<InputGroup
|
||||||
{...registerPageType("company_name", {
|
{...registerPageType("company_name", {
|
||||||
required: isCompany
|
required: isCompany
|
||||||
|
|||||||
+250
-251
@@ -1,258 +1,257 @@
|
|||||||
export const Countries = [
|
export const Countries = [
|
||||||
{ value: "AF", label: "Afghanistan" },
|
{ value: "AFG", label: "Afghanistan" },
|
||||||
{ value: "AX", label: "Åland Islands" },
|
{ value: "ALA", label: "Åland Islands" },
|
||||||
{ value: "AL", label: "Albania" },
|
{ value: "ALB", label: "Albania" },
|
||||||
{ value: "DZ", label: "Algeria" },
|
{ value: "DZA", label: "Algeria" },
|
||||||
{ value: "AS", label: "American Samoa" },
|
{ value: "ASM", label: "American Samoa" },
|
||||||
{ value: "AD", label: "Andorra" },
|
{ value: "AND", label: "Andorra" },
|
||||||
{ value: "AO", label: "Angola" },
|
{ value: "AGO", label: "Angola" },
|
||||||
{ value: "AI", label: "Anguilla" },
|
{ value: "AIA", label: "Anguilla" },
|
||||||
{ value: "AQ", label: "Antarctica" },
|
{ value: "ATA", label: "Antarctica" },
|
||||||
{ value: "AG", label: "Antigua and Barbuda" },
|
{ value: "ATG", label: "Antigua and Barbuda" },
|
||||||
{ value: "AR", label: "Argentina" },
|
{ value: "ARG", label: "Argentina" },
|
||||||
{ value: "AM", label: "Armenia" },
|
{ value: "ARM", label: "Armenia" },
|
||||||
{ value: "AW", label: "Aruba" },
|
{ value: "ABW", label: "Aruba" },
|
||||||
{ value: "AU", label: "Australia" },
|
{ value: "AUS", label: "Australia" },
|
||||||
{ value: "AT", label: "Austria" },
|
{ value: "AUT", label: "Austria" },
|
||||||
{ value: "AZ", label: "Azerbaijan" },
|
{ value: "AZE", label: "Azerbaijan" },
|
||||||
{ value: "BS", label: "Bahamas (The)" },
|
{ value: "BHS", label: "Bahamas (The)" },
|
||||||
{ value: "BH", label: "Bahrain" },
|
{ value: "BHR", label: "Bahrain" },
|
||||||
{ value: "BD", label: "Bangladesh" },
|
{ value: "BGD", label: "Bangladesh" },
|
||||||
{ value: "BB", label: "Barbados" },
|
{ value: "BRB", label: "Barbados" },
|
||||||
{ value: "BY", label: "Belarus" },
|
{ value: "BLR", label: "Belarus" },
|
||||||
{ value: "BE", label: "Belgium" },
|
{ value: "BEL", label: "Belgium" },
|
||||||
{ value: "BZ", label: "Belize" },
|
{ value: "BLZ", label: "Belize" },
|
||||||
{ value: "BJ", label: "Benin" },
|
{ value: "BEN", label: "Benin" },
|
||||||
{ value: "BM", label: "Bermuda" },
|
{ value: "BMU", label: "Bermuda" },
|
||||||
{ value: "BT", label: "Bhutan" },
|
{ value: "BTN", label: "Bhutan" },
|
||||||
{ value: "BO", label: "Bolivia (Plurinational State of)" },
|
{ value: "BOL", label: "Bolivia (Plurinational State of)" },
|
||||||
{ value: "BQ", label: "Bonaire, Sint Eustatius and Saba" },
|
{ value: "BES", label: "Bonaire, Sint Eustatius and Saba" },
|
||||||
{ value: "BA", label: "Bosnia and Herzegovina" },
|
{ value: "BIH", label: "Bosnia and Herzegovina" },
|
||||||
{ value: "BW", label: "Botswana" },
|
{ value: "BWA", label: "Botswana" },
|
||||||
{ value: "BV", label: "Bouvet Island" },
|
{ value: "BVT", label: "Bouvet Island" },
|
||||||
{ value: "BR", label: "Brazil" },
|
{ value: "BRA", label: "Brazil" },
|
||||||
{ value: "IO", label: "British Indian Ocean Territory" },
|
{ value: "IOT", label: "British Indian Ocean Territory" },
|
||||||
{ value: "BN", label: "Brunei Darussalam" },
|
{ value: "BRN", label: "Brunei Darussalam" },
|
||||||
{ value: "BG", label: "Bulgaria" },
|
{ value: "BGR", label: "Bulgaria" },
|
||||||
{ value: "BF", label: "Burkina Faso" },
|
{ value: "BFA", label: "Burkina Faso" },
|
||||||
{ value: "BI", label: "Burundi" },
|
{ value: "BDI", label: "Burundi" },
|
||||||
{ value: "CV", label: "Cabo Verde" },
|
{ value: "CPV", label: "Cabo Verde" },
|
||||||
{ value: "KH", label: "Cambodia" },
|
{ value: "KHM", label: "Cambodia" },
|
||||||
{ value: "CM", label: "Cameroon" },
|
{ value: "CMR", label: "Cameroon" },
|
||||||
{ value: "CA", label: "Canada" },
|
{ value: "CAN", label: "Canada" },
|
||||||
{ value: "KY", label: "Cayman Islands" },
|
{ value: "CYM", label: "Cayman Islands" },
|
||||||
{ value: "CF", label: "Central African Republic" },
|
{ value: "CAF", label: "Central African Republic" },
|
||||||
{ value: "TD", label: "Chad" },
|
{ value: "TCD", label: "Chad" },
|
||||||
{ value: "CL", label: "Chile" },
|
{ value: "CHL", label: "Chile" },
|
||||||
{ value: "CN", label: "China" },
|
{ value: "CHN", label: "China" },
|
||||||
{ value: "CX", label: "Christmas Island" },
|
{ value: "CXR", label: "Christmas Island" },
|
||||||
{ value: "CC", label: "Cocos (Keeling) Islands" },
|
{ value: "CCK", label: "Cocos (Keeling) Islands" },
|
||||||
{ value: "CO", label: "Colombia" },
|
{ value: "COL", label: "Colombia" },
|
||||||
{ value: "KM", label: "Comoros" },
|
{ value: "COM", label: "Comoros" },
|
||||||
{ value: "CG", label: "Congo (Republic of the)" },
|
{ value: "COG", label: "Congo (Republic of the)" },
|
||||||
{ value: "CD", label: "Congo (Democratic Republic of the)" },
|
{ value: "COD", label: "Congo (Democratic Republic of the)" },
|
||||||
{ value: "CK", label: "Cook Islands" },
|
{ value: "COK", label: "Cook Islands" },
|
||||||
{ value: "CR", label: "Costa Rica" },
|
{ value: "CRI", label: "Costa Rica" },
|
||||||
{ value: "CI", label: "Côte d’Ivoire" },
|
{ value: "CIV", label: "Côte d’Ivoire" },
|
||||||
{ value: "HR", label: "Croatia" },
|
{ value: "HRV", label: "Croatia" },
|
||||||
{ value: "CU", label: "Cuba" },
|
{ value: "CUB", label: "Cuba" },
|
||||||
{ value: "CW", label: "Curaçao" },
|
{ value: "CUW", label: "Curaçao" },
|
||||||
{ value: "CY", label: "Cyprus" },
|
{ value: "CYP", label: "Cyprus" },
|
||||||
{ value: "CZ", label: "Czechia" },
|
{ value: "CZE", label: "Czechia" },
|
||||||
{ value: "DK", label: "Denmark" },
|
{ value: "DNK", label: "Denmark" },
|
||||||
{ value: "DJ", label: "Djibouti" },
|
{ value: "DJI", label: "Djibouti" },
|
||||||
{ value: "DM", label: "Dominica" },
|
{ value: "DMA", label: "Dominica" },
|
||||||
{ value: "DO", label: "Dominican Republic" },
|
{ value: "DOM", label: "Dominican Republic" },
|
||||||
{ value: "EC", label: "Ecuador" },
|
{ value: "ECU", label: "Ecuador" },
|
||||||
{ value: "EG", label: "Egypt" },
|
{ value: "EGY", label: "Egypt" },
|
||||||
{ value: "SV", label: "El Salvador" },
|
{ value: "SLV", label: "El Salvador" },
|
||||||
{ value: "GQ", label: "Equatorial Guinea" },
|
{ value: "GNQ", label: "Equatorial Guinea" },
|
||||||
{ value: "ER", label: "Eritrea" },
|
{ value: "ERI", label: "Eritrea" },
|
||||||
{ value: "EE", label: "Estonia" },
|
{ value: "EST", label: "Estonia" },
|
||||||
{ value: "SZ", label: "Eswatini" },
|
{ value: "SWZ", label: "Eswatini" },
|
||||||
{ value: "ET", label: "Ethiopia" },
|
{ value: "ETH", label: "Ethiopia" },
|
||||||
{ value: "FK", label: "Falkland Islands (Malvinas)" },
|
{ value: "FLK", label: "Falkland Islands (Malvinas)" },
|
||||||
{ value: "FO", label: "Faroe Islands" },
|
{ value: "FRO", label: "Faroe Islands" },
|
||||||
{ value: "FJ", label: "Fiji" },
|
{ value: "FJI", label: "Fiji" },
|
||||||
{ value: "FI", label: "Finland" },
|
{ value: "FIN", label: "Finland" },
|
||||||
{ value: "FR", label: "France" },
|
{ value: "FRA", label: "France" },
|
||||||
{ value: "GF", label: "French Guiana" },
|
{ value: "GUF", label: "French Guiana" },
|
||||||
{ value: "PF", label: "French Polynesia" },
|
{ value: "PYF", label: "French Polynesia" },
|
||||||
{ value: "TF", label: "French Southern Territories" },
|
{ value: "ATF", label: "French Southern Territories" },
|
||||||
{ value: "GA", label: "Gabon" },
|
{ value: "GAB", label: "Gabon" },
|
||||||
{ value: "GM", label: "Gambia (The)" },
|
{ value: "GMB", label: "Gambia (The)" },
|
||||||
{ value: "GE", label: "Georgia" },
|
{ value: "GEO", label: "Georgia" },
|
||||||
{ value: "DE", label: "Germany" },
|
{ value: "DEU", label: "Germany" },
|
||||||
{ value: "GH", label: "Ghana" },
|
{ value: "GHA", label: "Ghana" },
|
||||||
{ value: "GI", label: "Gibraltar" },
|
{ value: "GIB", label: "Gibraltar" },
|
||||||
{ value: "GR", label: "Greece" },
|
{ value: "GRC", label: "Greece" },
|
||||||
{ value: "GL", label: "Greenland" },
|
{ value: "GRL", label: "Greenland" },
|
||||||
{ value: "GD", label: "Grenada" },
|
{ value: "GRD", label: "Grenada" },
|
||||||
{ value: "GP", label: "Guadeloupe" },
|
{ value: "GLP", label: "Guadeloupe" },
|
||||||
{ value: "GU", label: "Guam" },
|
{ value: "GUM", label: "Guam" },
|
||||||
{ value: "GT", label: "Guatemala" },
|
{ value: "GTM", label: "Guatemala" },
|
||||||
{ value: "GG", label: "Guernsey" },
|
{ value: "GGY", label: "Guernsey" },
|
||||||
{ value: "GN", label: "Guinea" },
|
{ value: "GIN", label: "Guinea" },
|
||||||
{ value: "GW", label: "Guinea-Bissau" },
|
{ value: "GNB", label: "Guinea-Bissau" },
|
||||||
{ value: "GY", label: "Guyana" },
|
{ value: "GUY", label: "Guyana" },
|
||||||
{ value: "HT", label: "Haiti" },
|
{ value: "HTI", label: "Haiti" },
|
||||||
{ value: "HM", label: "Heard Island and McDonald Islands" },
|
{ value: "HMD", label: "Heard Island and McDonald Islands" },
|
||||||
{ value: "VA", label: "Holy See (Vatican City State)" },
|
{ value: "VAT", label: "Holy See (Vatican City State)" },
|
||||||
{ value: "HN", label: "Honduras" },
|
{ value: "HND", label: "Honduras" },
|
||||||
{ value: "HK", label: "Hong Kong" },
|
{ value: "HKG", label: "Hong Kong" },
|
||||||
{ value: "HU", label: "Hungary" },
|
{ value: "HUN", label: "Hungary" },
|
||||||
{ value: "IS", label: "Iceland" },
|
{ value: "ISL", label: "Iceland" },
|
||||||
{ value: "IN", label: "India" },
|
{ value: "IND", label: "India" },
|
||||||
{ value: "ID", label: "Indonesia" },
|
{ value: "IDN", label: "Indonesia" },
|
||||||
{ value: "IR", label: "Iran" },
|
{ value: "IRN", label: "Iran" },
|
||||||
{ value: "IQ", label: "Iraq" },
|
{ value: "IRQ", label: "Iraq" },
|
||||||
{ value: "IE", label: "Ireland" },
|
{ value: "IRL", label: "Ireland" },
|
||||||
{ value: "IM", label: "Isle of Man" },
|
{ value: "IMN", label: "Isle of Man" },
|
||||||
{ value: "IL", label: "Israel" },
|
{ value: "ISR", label: "Israel" },
|
||||||
{ value: "IT", label: "Italy" },
|
{ value: "ITA", label: "Italy" },
|
||||||
{ value: "JM", label: "Jamaica" },
|
{ value: "JAM", label: "Jamaica" },
|
||||||
{ value: "JP", label: "Japan" },
|
{ value: "JPN", label: "Japan" },
|
||||||
{ value: "JE", label: "Jersey" },
|
{ value: "JEY", label: "Jersey" },
|
||||||
{ value: "JO", label: "Jordan" },
|
{ value: "JOR", label: "Jordan" },
|
||||||
{ value: "KZ", label: "Kazakhstan" },
|
{ value: "KAZ", label: "Kazakhstan" },
|
||||||
{ value: "KE", label: "Kenya" },
|
{ value: "KEN", label: "Kenya" },
|
||||||
{ value: "KI", label: "Kiribati" },
|
{ value: "KIR", label: "Kiribati" },
|
||||||
{ value: "KP", label: "Korea (Democratic People’s Republic of)" },
|
{ value: "PRK", label: "Korea (Democratic People’s Republic of)" },
|
||||||
{ value: "KR", label: "Korea (Republic of)" },
|
{ value: "KOR", label: "Korea (Republic of)" },
|
||||||
{ value: "KW", label: "Kuwait" },
|
{ value: "KWT", label: "Kuwait" },
|
||||||
{ value: "KG", label: "Kyrgyzstan" },
|
{ value: "KGZ", label: "Kyrgyzstan" },
|
||||||
{ value: "LA", label: "Lao People’s Democratic Republic" },
|
{ value: "LAO", label: "Lao People’s Democratic Republic" },
|
||||||
{ value: "LV", label: "Latvia" },
|
{ value: "LVA", label: "Latvia" },
|
||||||
{ value: "LB", label: "Lebanon" },
|
{ value: "LBN", label: "Lebanon" },
|
||||||
{ value: "LS", label: "Lesotho" },
|
{ value: "LSO", label: "Lesotho" },
|
||||||
{ value: "LR", label: "Liberia" },
|
{ value: "LBR", label: "Liberia" },
|
||||||
{ value: "LY", label: "Libya" },
|
{ value: "LBY", label: "Libya" },
|
||||||
{ value: "LI", label: "Liechtenstein" },
|
{ value: "LIE", label: "Liechtenstein" },
|
||||||
{ value: "LT", label: "Lithuania" },
|
{ value: "LTU", label: "Lithuania" },
|
||||||
{ value: "LU", label: "Luxembourg" },
|
{ value: "LUX", label: "Luxembourg" },
|
||||||
{ value: "MO", label: "Macao" },
|
{ value: "MAC", label: "Macao" },
|
||||||
{ value: "MG", label: "Madagascar" },
|
{ value: "MDG", label: "Madagascar" },
|
||||||
{ value: "MW", label: "Malawi" },
|
{ value: "MWI", label: "Malawi" },
|
||||||
{ value: "MY", label: "Malaysia" },
|
{ value: "MYS", label: "Malaysia" },
|
||||||
{ value: "MV", label: "Maldives" },
|
{ value: "MDV", label: "Maldives" },
|
||||||
{ value: "ML", label: "Mali" },
|
{ value: "MLI", label: "Mali" },
|
||||||
{ value: "MT", label: "Malta" },
|
{ value: "MLT", label: "Malta" },
|
||||||
{ value: "MH", label: "Marshall Islands" },
|
{ value: "MHL", label: "Marshall Islands" },
|
||||||
{ value: "MQ", label: "Martinique" },
|
{ value: "MTQ", label: "Martinique" },
|
||||||
{ value: "MR", label: "Mauritania" },
|
{ value: "MRT", label: "Mauritania" },
|
||||||
{ value: "MU", label: "Mauritius" },
|
{ value: "MUS", label: "Mauritius" },
|
||||||
{ value: "YT", label: "Mayotte" },
|
{ value: "MYT", label: "Mayotte" },
|
||||||
{ value: "MX", label: "Mexico" },
|
{ value: "MEX", label: "Mexico" },
|
||||||
{ value: "FM", label: "Micronesia (Federated States of)" },
|
{ value: "FSM", label: "Micronesia (Federated States of)" },
|
||||||
{ value: "MD", label: "Moldova (Republic of)" },
|
{ value: "MDA", label: "Moldova (Republic of)" },
|
||||||
{ value: "MC", label: "Monaco" },
|
{ value: "MCO", label: "Monaco" },
|
||||||
{ value: "MN", label: "Mongolia" },
|
{ value: "MNG", label: "Mongolia" },
|
||||||
{ value: "ME", label: "Montenegro" },
|
{ value: "MNE", label: "Montenegro" },
|
||||||
{ value: "MS", label: "Montserrat" },
|
{ value: "MSR", label: "Montserrat" },
|
||||||
{ value: "MA", label: "Morocco" },
|
{ value: "MAR", label: "Morocco" },
|
||||||
{ value: "MZ", label: "Mozambique" },
|
{ value: "MOZ", label: "Mozambique" },
|
||||||
{ value: "MM", label: "Myanmar" },
|
{ value: "MMR", label: "Myanmar" },
|
||||||
{ value: "NA", label: "Namibia" },
|
{ value: "NAM", label: "Namibia" },
|
||||||
{ value: "NR", label: "Nauru" },
|
{ value: "NRU", label: "Nauru" },
|
||||||
{ value: "NP", label: "Nepal" },
|
{ value: "NPL", label: "Nepal" },
|
||||||
{ value: "NL", label: "Netherlands (The)" },
|
{ value: "NLD", label: "Netherlands (The)" },
|
||||||
{ value: "NC", label: "New Caledonia" },
|
{ value: "NCL", label: "New Caledonia" },
|
||||||
{ value: "NZ", label: "New Zealand" },
|
{ value: "NZL", label: "New Zealand" },
|
||||||
{ value: "NI", label: "Nicaragua" },
|
{ value: "NIC", label: "Nicaragua" },
|
||||||
{ value: "NE", label: "Niger (The)" },
|
{ value: "NER", label: "Niger (The)" },
|
||||||
{ value: "NG", label: "Nigeria" },
|
{ value: "NGA", label: "Nigeria" },
|
||||||
{ value: "NU", label: "Niue" },
|
{ value: "NIU", label: "Niue" },
|
||||||
{ value: "NF", label: "Norfolk Island" },
|
{ value: "NFK", label: "Norfolk Island" },
|
||||||
{ value: "MK", label: "North Macedonia" },
|
{ value: "MKD", label: "North Macedonia" },
|
||||||
{ value: "MP", label: "Northern Mariana Islands" },
|
{ value: "MNP", label: "Northern Mariana Islands" },
|
||||||
{ value: "NO", label: "Norway" },
|
{ value: "NOR", label: "Norway" },
|
||||||
{ value: "OM", label: "Oman" },
|
{ value: "OMN", label: "Oman" },
|
||||||
{ value: "PK", label: "Pakistan" },
|
{ value: "PAK", label: "Pakistan" },
|
||||||
{ value: "PW", label: "Palau" },
|
{ value: "PLW", label: "Palau" },
|
||||||
{ value: "PS", label: "Palestine, State of" },
|
{ value: "PSE", label: "Palestine, State of" },
|
||||||
{ value: "PA", label: "Panama" },
|
{ value: "PAN", label: "Panama" },
|
||||||
{ value: "PG", label: "Papua New Guinea" },
|
{ value: "PNG", label: "Papua New Guinea" },
|
||||||
{ value: "PY", label: "Paraguay" },
|
{ value: "PRY", label: "Paraguay" },
|
||||||
{ value: "PE", label: "Peru" },
|
{ value: "PER", label: "Peru" },
|
||||||
{ value: "PH", label: "Philippines (The)" },
|
{ value: "PHL", label: "Philippines (The)" },
|
||||||
{ value: "PN", label: "Pitcairn" },
|
{ value: "PCN", label: "Pitcairn" },
|
||||||
{ value: "PL", label: "Poland" },
|
{ value: "POL", label: "Poland" },
|
||||||
{ value: "PT", label: "Portugal" },
|
{ value: "PRT", label: "Portugal" },
|
||||||
{ value: "PR", label: "Puerto Rico" },
|
{ value: "PRI", label: "Puerto Rico" },
|
||||||
{ value: "QA", label: "Qatar" },
|
{ value: "QAT", label: "Qatar" },
|
||||||
{ value: "RE", label: "Réunion" },
|
{ value: "REU", label: "Réunion" },
|
||||||
{ value: "RO", label: "Romania" },
|
{ value: "ROU", label: "Romania" },
|
||||||
{ value: "RU", label: "Russian Federation (The)" },
|
{ value: "RUS", label: "Russian Federation (The)" },
|
||||||
{ value: "RW", label: "Rwanda" },
|
{ value: "RWA", label: "Rwanda" },
|
||||||
{ value: "BL", label: "Saint Barthélemy" },
|
{ value: "BLM", label: "Saint Barthélemy" },
|
||||||
{ value: "SH", label: "Saint Helena, Ascension and Tristan da Cunha" },
|
{ value: "SHN", label: "Saint Helena, Ascension and Tristan da Cunha" },
|
||||||
{ value: "KN", label: "Saint Kitts and Nevis" },
|
{ value: "KNA", label: "Saint Kitts and Nevis" },
|
||||||
{ value: "LC", label: "Saint Lucia" },
|
{ value: "LCA", label: "Saint Lucia" },
|
||||||
{ value: "MF", label: "Saint Martin (French part)" },
|
{ value: "MAF", label: "Saint Martin (French part)" },
|
||||||
{ value: "PM", label: "Saint Pierre and Miquelon" },
|
{ value: "SPM", label: "Saint Pierre and Miquelon" },
|
||||||
{ value: "VC", label: "Saint Vincent and the Grenadines" },
|
{ value: "VCT", label: "Saint Vincent and the Grenadines" },
|
||||||
{ value: "WS", label: "Samoa" },
|
{ value: "WSM", label: "Samoa" },
|
||||||
{ value: "SM", label: "San Marino" },
|
{ value: "SMR", label: "San Marino" },
|
||||||
{ value: "ST", label: "Sao Tome and Principe" },
|
{ value: "STP", label: "Sao Tome and Principe" },
|
||||||
{ value: "SA", label: "Saudi Arabia" },
|
{ value: "SAU", label: "Saudi Arabia" },
|
||||||
{ value: "SN", label: "Senegal" },
|
{ value: "SEN", label: "Senegal" },
|
||||||
{ value: "RS", label: "Serbia" },
|
{ value: "SRB", label: "Serbia" },
|
||||||
{ value: "SC", label: "Seychelles" },
|
{ value: "SYC", label: "Seychelles" },
|
||||||
{ value: "SL", label: "Sierra Leone" },
|
{ value: "SLE", label: "Sierra Leone" },
|
||||||
{ value: "SG", label: "Singapore" },
|
{ value: "SGP", label: "Singapore" },
|
||||||
{ value: "SX", label: "Sint Maarten (Dutch part)" },
|
{ value: "SXM", label: "Sint Maarten (Dutch part)" },
|
||||||
{ value: "SK", label: "Slovakia" },
|
{ value: "SVK", label: "Slovakia" },
|
||||||
{ value: "SI", label: "Slovenia" },
|
{ value: "SVN", label: "Slovenia" },
|
||||||
{ value: "SB", label: "Solomon Islands" },
|
{ value: "SLB", label: "Solomon Islands" },
|
||||||
{ value: "SO", label: "Somalia" },
|
{ value: "SOM", label: "Somalia" },
|
||||||
{ value: "ZA", label: "South Africa" },
|
{ value: "ZAF", label: "South Africa" },
|
||||||
{ value: "GS", label: "South Georgia and the South Sandwich Islands" },
|
{ value: "SGS", label: "South Georgia and the South Sandwich Islands" },
|
||||||
{ value: "SS", label: "South Sudan" },
|
{ value: "SSD", label: "South Sudan" },
|
||||||
{ value: "ES", label: "Spain" },
|
{ value: "ESP", label: "Spain" },
|
||||||
{ value: "LK", label: "Sri Lanka" },
|
{ value: "LKA", label: "Sri Lanka" },
|
||||||
{ value: "SD", label: "Sudan (The)" },
|
{ value: "SDN", label: "Sudan (The)" },
|
||||||
{ value: "SR", label: "Suriname" },
|
{ value: "SUR", label: "Suriname" },
|
||||||
{ value: "SJ", label: "Svalbard and Jan Mayen" },
|
{ value: "SJM", label: "Svalbard and Jan Mayen" },
|
||||||
{ value: "SE", label: "Sweden" },
|
{ value: "SWE", label: "Sweden" },
|
||||||
{ value: "CH", label: "Switzerland" },
|
{ value: "CHE", label: "Switzerland" },
|
||||||
{ value: "SY", label: "Syrian Arab Republic" },
|
{ value: "SYR", label: "Syrian Arab Republic" },
|
||||||
{ value: "TW", label: "Taiwan (Province of China)" },
|
{ value: "TWN", label: "Taiwan (Province of China)" },
|
||||||
{ value: "TJ", label: "Tajikistan" },
|
{ value: "TJK", label: "Tajikistan" },
|
||||||
{ value: "TZ", label: "Tanzania (United Republic of)" },
|
{ value: "TZA", label: "Tanzania (United Republic of)" },
|
||||||
{ value: "TH", label: "Thailand" },
|
{ value: "THA", label: "Thailand" },
|
||||||
{ value: "TL", label: "Timor-Leste" },
|
{ value: "TLS", label: "Timor-Leste" },
|
||||||
{ value: "TG", label: "Togo" },
|
{ value: "TGO", label: "Togo" },
|
||||||
{ value: "TK", label: "Tokelau" },
|
{ value: "TKL", label: "Tokelau" },
|
||||||
{ value: "TO", label: "Tonga" },
|
{ value: "TON", label: "Tonga" },
|
||||||
{ value: "TT", label: "Trinidad and Tobago" },
|
{ value: "TTO", label: "Trinidad and Tobago" },
|
||||||
{ value: "TN", label: "Tunisia" },
|
{ value: "TUN", label: "Tunisia" },
|
||||||
{ value: "TR", label: "Türkiye" },
|
{ value: "TUR", label: "Türkiye" },
|
||||||
{ value: "TM", label: "Turkmenistan" },
|
{ value: "TKM", label: "Turkmenistan" },
|
||||||
{ value: "TC", label: "Turks and Caicos Islands" },
|
{ value: "TCA", label: "Turks and Caicos Islands" },
|
||||||
{ value: "TV", label: "Tuvalu" },
|
{ value: "TUV", label: "Tuvalu" },
|
||||||
{ value: "UG", label: "Uganda" },
|
{ value: "UGA", label: "Uganda" },
|
||||||
{ value: "UA", label: "Ukraine" },
|
{ value: "UKR", label: "Ukraine" },
|
||||||
{ value: "AE", label: "United Arab Emirates" },
|
{ value: "ARE", label: "United Arab Emirates" },
|
||||||
{
|
{
|
||||||
value: "GB",
|
value: "GBR",
|
||||||
label: "United Kingdom of Great Britain and Northern Ireland",
|
label: "United Kingdom of Great Britain and Northern Ireland",
|
||||||
},
|
},
|
||||||
{ value: "US", label: "United States of America" },
|
{ value: "USA", label: "United States of America" },
|
||||||
{ value: "UM", label: "United States Minor Outlying Islands" },
|
{ value: "UMI", label: "United States Minor Outlying Islands" },
|
||||||
{ value: "UY", label: "Uruguay" },
|
{ value: "URY", label: "Uruguay" },
|
||||||
{ value: "UZ", label: "Uzbekistan" },
|
{ value: "UZB", label: "Uzbekistan" },
|
||||||
{ value: "VU", label: "Vanuatu" },
|
{ value: "VUT", label: "Vanuatu" },
|
||||||
{ value: "VE", label: "Venezuela (Bolivarian Republic of)" },
|
{ value: "VEN", label: "Venezuela (Bolivarian Republic of)" },
|
||||||
{ value: "VN", label: "Viet Nam" },
|
{ value: "VNM", label: "Viet Nam" },
|
||||||
{ value: "VG", label: "Virgin Islands (British)" },
|
{ value: "VGB", label: "Virgin Islands (British)" },
|
||||||
{ value: "VI", label: "Virgin Islands (U.S.)" },
|
{ value: "VIR", label: "Virgin Islands (U.S.)" },
|
||||||
{ value: "WF", label: "Wallis and Futuna" },
|
{ value: "WLF", label: "Wallis and Futuna" },
|
||||||
{
|
{
|
||||||
value: "EH",
|
value: "ESH",
|
||||||
label:
|
label: "Western Sahara (Sahrawi Arab Democratic Republic claimed by Morocco)",
|
||||||
"Western Sahara (Sahrawi Arab Democratic Republic claimed by Morocco)",
|
|
||||||
},
|
},
|
||||||
{ value: "YE", label: "Yemen" },
|
{ value: "YEM", label: "Yemen" },
|
||||||
{ value: "ZM", label: "Zambia" },
|
{ value: "ZMB", label: "Zambia" },
|
||||||
{ value: "ZW", label: "Zimbabwe" },
|
{ value: "ZWE", label: "Zimbabwe" },
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -0,0 +1,186 @@
|
|||||||
|
export const Languages = [
|
||||||
|
{ value: "aa", label: "Afar" },
|
||||||
|
{ value: "ab", label: "Abkhazian" },
|
||||||
|
{ value: "ae", label: "Avestan" },
|
||||||
|
{ value: "af", label: "Afrikaans" },
|
||||||
|
{ value: "ak", label: "Akan" },
|
||||||
|
{ value: "am", label: "Amharic" },
|
||||||
|
{ value: "an", label: "Aragonese" },
|
||||||
|
{ value: "ar", label: "Arabic" },
|
||||||
|
{ value: "as", label: "Assamese" },
|
||||||
|
{ value: "av", label: "Avaric" },
|
||||||
|
{ value: "ay", label: "Aymara" },
|
||||||
|
{ value: "az", label: "Azerbaijani" },
|
||||||
|
{ value: "ba", label: "Bashkir" },
|
||||||
|
{ value: "be", label: "Belarusian" },
|
||||||
|
{ value: "bg", label: "Bulgarian" },
|
||||||
|
{ value: "bh", label: "Bihari languages" },
|
||||||
|
{ value: "bi", label: "Bislama" },
|
||||||
|
{ value: "bm", label: "Bambara" },
|
||||||
|
{ value: "bn", label: "Bengali" },
|
||||||
|
{ value: "bo", label: "Tibetan" },
|
||||||
|
{ value: "br", label: "Breton" },
|
||||||
|
{ value: "bs", label: "Bosnian" },
|
||||||
|
{ value: "ca", label: "Catalan; Valencian" },
|
||||||
|
{ value: "ce", label: "Chechen" },
|
||||||
|
{ value: "ch", label: "Chamorro" },
|
||||||
|
{ value: "co", label: "Corsican" },
|
||||||
|
{ value: "cr", label: "Cree" },
|
||||||
|
{ value: "cs", label: "Czech" },
|
||||||
|
{ value: "cu", label: "Church Slavic; Old Slavonic" },
|
||||||
|
{ value: "cv", label: "Chuvash" },
|
||||||
|
{ value: "cy", label: "Welsh" },
|
||||||
|
{ value: "da", label: "Danish" },
|
||||||
|
{ value: "de", label: "German" },
|
||||||
|
{ value: "dv", label: "Divehi; Dhivehi; Maldivian" },
|
||||||
|
{ value: "dz", label: "Dzongkha" },
|
||||||
|
{ value: "ee", label: "Ewe" },
|
||||||
|
{ value: "el", label: "Greek" },
|
||||||
|
{ value: "en", label: "English" },
|
||||||
|
{ value: "eo", label: "Esperanto" },
|
||||||
|
{ value: "es", label: "Spanish; Castilian" },
|
||||||
|
{ value: "et", label: "Estonian" },
|
||||||
|
{ value: "eu", label: "Basque" },
|
||||||
|
{ value: "fa", label: "Persian" },
|
||||||
|
{ value: "ff", label: "Fulah" },
|
||||||
|
{ value: "fi", label: "Finnish" },
|
||||||
|
{ value: "fj", label: "Fijian" },
|
||||||
|
{ value: "fo", label: "Faroese" },
|
||||||
|
{ value: "fr", label: "French" },
|
||||||
|
{ value: "fy", label: "Western Frisian" },
|
||||||
|
{ value: "ga", label: "Irish" },
|
||||||
|
{ value: "gd", label: "Gaelic; Scottish Gaelic" },
|
||||||
|
{ value: "gl", label: "Galician" },
|
||||||
|
{ value: "gn", label: "Guarani" },
|
||||||
|
{ value: "gu", label: "Gujarati" },
|
||||||
|
{ value: "gv", label: "Manx" },
|
||||||
|
{ value: "ha", label: "Hausa" },
|
||||||
|
{ value: "he", label: "Hebrew" },
|
||||||
|
{ value: "hi", label: "Hindi" },
|
||||||
|
{ value: "ho", label: "Hiri Motu" },
|
||||||
|
{ value: "hr", label: "Croatian" },
|
||||||
|
{ value: "ht", label: "Haitian; Haitian Creole" },
|
||||||
|
{ value: "hu", label: "Hungarian" },
|
||||||
|
{ value: "hy", label: "Armenian" },
|
||||||
|
{ value: "hz", label: "Herero" },
|
||||||
|
{ value: "ia", label: "Interlingua" },
|
||||||
|
{ value: "id", label: "Indonesian" },
|
||||||
|
{ value: "ie", label: "Interlingue; Occidental" },
|
||||||
|
{ value: "ig", label: "Igbo" },
|
||||||
|
{ value: "ii", label: "Sichuan Yi; Nuosu" },
|
||||||
|
{ value: "ik", label: "Inupiaq" },
|
||||||
|
{ value: "io", label: "Ido" },
|
||||||
|
{ value: "is", label: "Icelandic" },
|
||||||
|
{ value: "it", label: "Italian" },
|
||||||
|
{ value: "iu", label: "Inuktitut" },
|
||||||
|
{ value: "ja", label: "Japanese" },
|
||||||
|
{ value: "jv", label: "Javanese" },
|
||||||
|
{ value: "ka", label: "Georgian" },
|
||||||
|
{ value: "kg", label: "Kongo" },
|
||||||
|
{ value: "ki", label: "Kikuyu; Gikuyu" },
|
||||||
|
{ value: "kj", label: "Kuanyama; Kwanyama" },
|
||||||
|
{ value: "kk", label: "Kazakh" },
|
||||||
|
{ value: "kl", label: "Kalaallisut; Greenlandic" },
|
||||||
|
{ value: "km", label: "Central Khmer" },
|
||||||
|
{ value: "kn", label: "Kannada" },
|
||||||
|
{ value: "ko", label: "Korean" },
|
||||||
|
{ value: "kr", label: "Kanuri" },
|
||||||
|
{ value: "ks", label: "Kashmiri" },
|
||||||
|
{ value: "ku", label: "Kurdish" },
|
||||||
|
{ value: "kv", label: "Komi" },
|
||||||
|
{ value: "kw", label: "Cornish" },
|
||||||
|
{ value: "ky", label: "Kirghiz; Kyrgyz" },
|
||||||
|
{ value: "la", label: "Latin" },
|
||||||
|
{ value: "lb", label: "Luxembourgish; Letzeburgesch" },
|
||||||
|
{ value: "lg", label: "Ganda" },
|
||||||
|
{ value: "li", label: "Limburgan; Limburger; Limburgish" },
|
||||||
|
{ value: "ln", label: "Lingala" },
|
||||||
|
{ value: "lo", label: "Lao" },
|
||||||
|
{ value: "lt", label: "Lithuanian" },
|
||||||
|
{ value: "lu", label: "Luba-Katanga" },
|
||||||
|
{ value: "lv", label: "Latvian" },
|
||||||
|
{ value: "mg", label: "Malagasy" },
|
||||||
|
{ value: "mh", label: "Marshallese" },
|
||||||
|
{ value: "mi", label: "Maori" },
|
||||||
|
{ value: "mk", label: "Macedonian" },
|
||||||
|
{ value: "ml", label: "Malayalam" },
|
||||||
|
{ value: "mn", label: "Mongolian" },
|
||||||
|
{ value: "mr", label: "Marathi" },
|
||||||
|
{ value: "ms", label: "Malay" },
|
||||||
|
{ value: "mt", label: "Maltese" },
|
||||||
|
{ value: "my", label: "Burmese" },
|
||||||
|
{ value: "na", label: "Nauru" },
|
||||||
|
{ value: "nb", label: "Norwegian Bokmål" },
|
||||||
|
{ value: "nd", label: "North Ndebele" },
|
||||||
|
{ value: "ne", label: "Nepali" },
|
||||||
|
{ value: "ng", label: "Ndonga" },
|
||||||
|
{ value: "nl", label: "Dutch; Flemish" },
|
||||||
|
{ value: "nn", label: "Norwegian Nynorsk" },
|
||||||
|
{ value: "no", label: "Norwegian" },
|
||||||
|
{ value: "nr", label: "South Ndebele" },
|
||||||
|
{ value: "nv", label: "Navajo; Navaho" },
|
||||||
|
{ value: "ny", label: "Chichewa; Chewa; Nyanja" },
|
||||||
|
{ value: "oc", label: "Occitan" },
|
||||||
|
{ value: "oj", label: "Ojibwa" },
|
||||||
|
{ value: "om", label: "Oromo" },
|
||||||
|
{ value: "or", label: "Oriya" },
|
||||||
|
{ value: "os", label: "Ossetian; Ossetic" },
|
||||||
|
{ value: "pa", label: "Punjabi; Panjabi" },
|
||||||
|
{ value: "pi", label: "Pali" },
|
||||||
|
{ value: "pl", label: "Polish" },
|
||||||
|
{ value: "ps", label: "Pashto; Pushto" },
|
||||||
|
{ value: "pt", label: "Portuguese" },
|
||||||
|
{ value: "qu", label: "Quechua" },
|
||||||
|
{ value: "rm", label: "Romansh" },
|
||||||
|
{ value: "rn", label: "Rundi" },
|
||||||
|
{ value: "ro", label: "Romanian; Moldavian" },
|
||||||
|
{ value: "ru", label: "Russian" },
|
||||||
|
{ value: "rw", label: "Kinyarwanda" },
|
||||||
|
{ value: "sa", label: "Sanskrit" },
|
||||||
|
{ value: "sc", label: "Sardinian" },
|
||||||
|
{ value: "sd", label: "Sindhi" },
|
||||||
|
{ value: "se", label: "Northern Sami" },
|
||||||
|
{ value: "sg", label: "Sango" },
|
||||||
|
{ value: "si", label: "Sinhala; Sinhalese" },
|
||||||
|
{ value: "sk", label: "Slovak" },
|
||||||
|
{ value: "sl", label: "Slovenian" },
|
||||||
|
{ value: "sm", label: "Samoan" },
|
||||||
|
{ value: "sn", label: "Shona" },
|
||||||
|
{ value: "so", label: "Somali" },
|
||||||
|
{ value: "sq", label: "Albanian" },
|
||||||
|
{ value: "sr", label: "Serbian" },
|
||||||
|
{ value: "ss", label: "Swati" },
|
||||||
|
{ value: "st", label: "Southern Sotho" },
|
||||||
|
{ value: "su", label: "Sundanese" },
|
||||||
|
{ value: "sv", label: "Swedish" },
|
||||||
|
{ value: "sw", label: "Swahili" },
|
||||||
|
{ value: "ta", label: "Tamil" },
|
||||||
|
{ value: "te", label: "Telugu" },
|
||||||
|
{ value: "tg", label: "Tajik" },
|
||||||
|
{ value: "th", label: "Thai" },
|
||||||
|
{ value: "ti", label: "Tigrinya" },
|
||||||
|
{ value: "tk", label: "Turkmen" },
|
||||||
|
{ value: "tl", label: "Tagalog" },
|
||||||
|
{ value: "tn", label: "Tswana" },
|
||||||
|
{ value: "to", label: "Tonga" },
|
||||||
|
{ value: "tr", label: "Turkish" },
|
||||||
|
{ value: "ts", label: "Tsonga" },
|
||||||
|
{ value: "tt", label: "Tatar" },
|
||||||
|
{ value: "tw", label: "Twi" },
|
||||||
|
{ value: "ty", label: "Tahitian" },
|
||||||
|
{ value: "ug", label: "Uighur; Uyghur" },
|
||||||
|
{ value: "uk", label: "Ukrainian" },
|
||||||
|
{ value: "ur", label: "Urdu" },
|
||||||
|
{ value: "uz", label: "Uzbek" },
|
||||||
|
{ value: "ve", label: "Venda" },
|
||||||
|
{ value: "vi", label: "Vietnamese" },
|
||||||
|
{ value: "vo", label: "Volapük" },
|
||||||
|
{ value: "wa", label: "Walloon" },
|
||||||
|
{ value: "wo", label: "Wolof" },
|
||||||
|
{ value: "xh", label: "Xhosa" },
|
||||||
|
{ value: "yi", label: "Yiddish" },
|
||||||
|
{ value: "yo", label: "Yoruba" },
|
||||||
|
{ value: "za", label: "Zhuang; Chuang" },
|
||||||
|
{ value: "zh", label: "Chinese" },
|
||||||
|
{ value: "zu", label: "Zulu" }
|
||||||
|
];
|
||||||
Reference in New Issue
Block a user