diff --git a/assets/default.png b/assets/default.png new file mode 100644 index 0000000..5ff4220 Binary files /dev/null and b/assets/default.png differ diff --git a/assets/troll.png b/assets/troll.png new file mode 100644 index 0000000..c39de0f Binary files /dev/null and b/assets/troll.png differ diff --git a/countries-and-their-associated-locaes.json b/countries-and-their-associated-locaes.json new file mode 100644 index 0000000..81441e3 --- /dev/null +++ b/countries-and-their-associated-locaes.json @@ -0,0 +1,1743 @@ +[ + { + "AF": { + "languages": [ + "ps", + "uz", + "tk" + ], + "name": "Afghanistan" + } + }, + { + "AL": { + "languages": [ + "sq" + ], + "name": "Albania" + } + }, + { + "DZ": { + "languages": [ + "ar", + "fr" + ], + "name": "Algeria" + } + }, + { + "AD": { + "languages": [ + "ca" + ], + "name": "Andorra" + } + }, + { + "AO": { + "languages": [ + "pt" + ], + "name": "Angola" + } + }, + { + "AG": { + "languages": [ + "en" + ], + "name": "Antigua and Barbuda" + } + }, + { + "AR": { + "languages": [ + "es", + "gn" + ], + "name": "Argentina" + } + }, + { + "AM": { + "languages": [ + "hy", + "ru" + ], + "name": "Armenia" + } + }, + { + "AU": { + "languages": [ + "en" + ], + "name": "Australia" + } + }, + { + "AT": { + "languages": [ + "de", + "hr", + "sl", + "cs", + "hu", + "sk", + "ro" + ], + "name": "Austria" + } + }, + { + "AZ": { + "languages": [ + "az", + "hy" + ], + "name": "Azerbaijan" + } + }, + { + "BS": { + "languages": [ + "en" + ], + "name": "Bahamas" + } + }, + { + "BH": { + "languages": [ + "ar" + ], + "name": "Bahrain" + } + }, + { + "BD": { + "languages": [ + "bn" + ], + "name": "Bangladesh" + } + }, + { + "BB": { + "languages": [ + "en" + ], + "name": "Barbados" + } + }, + { + "BY": { + "languages": [ + "be", + "ru" + ], + "name": "Belarus" + } + }, + { + "BE": { + "languages": [ + "nl", + "fr", + "de" + ], + "name": "Belgium" + } + }, + { + "BZ": { + "languages": [ + "en", + "es" + ], + "name": "Belize" + } + }, + { + "BJ": { + "languages": [ + "fr" + ], + "name": "Benin" + } + }, + { + "BT": { + "languages": [ + "dz" + ], + "name": "Bhutan" + } + }, + { + "BO": { + "languages": [ + "es", + "ay", + "qu" + ], + "name": "Bolivia" + } + }, + { + "BA": { + "languages": [ + "bs", + "hr", + "sr" + ], + "name": "Bosnia and Herzegovina" + } + }, + { + "BW": { + "languages": [ + "en", + "tn" + ], + "name": "Botswana" + } + }, + { + "BR": { + "languages": [ + "pt", + "de" + ], + "name": "Brazil" + } + }, + { + "BN": { + "languages": [ + "ml" + ], + "name": "Brunei" + } + }, + { + "BG": { + "languages": [ + "bg" + ], + "name": "Bulgaria" + } + }, + { + "BF": { + "languages": [ + "fr", + "ff" + ], + "name": "Burkina Faso" + } + }, + { + "BI": { + "languages": [ + "fr", + "rn" + ], + "name": "Burundi" + } + }, + { + "KH": { + "languages": [ + "km" + ], + "name": "Cambodia" + } + }, + { + "CM": { + "languages": [ + "en", + "fr" + ], + "name": "Cameroon" + } + }, + { + "CA": { + "languages": [ + "en", + "fr", + "cr", + "iu" + ], + "name": "Canada" + } + }, + { + "CV": { + "languages": [ + "pt" + ], + "name": "Cape Verde" + } + }, + { + "CF": { + "languages": [ + "fr", + "sg" + ], + "name": "Central African Republic" + } + }, + { + "TD": { + "languages": [ + "ar", + "fr" + ], + "name": "Chad" + } + }, + { + "CL": { + "languages": [ + "es" + ], + "name": "Chile" + } + }, + { + "CN": { + "languages": [ + "zh" + ], + "name": "China" + } + }, + { + "CO": { + "languages": [ + "es" + ], + "name": "Colombia" + } + }, + { + "KM": { + "languages": [ + "ar", + "fr" + ], + "name": "Comoros" + } + }, + { + "CD": { + "languages": [ + "fr", + "ln" + ], + "name": "Republic of the Congo" + } + }, + { + "CR": { + "languages": [ + "es" + ], + "name": "Costa Rica" + } + }, + { + "CI": { + "languages": [ + "fr" + ], + "name": "Cote d'Ivoire" + } + }, + { + "HR": { + "languages": [ + "hr", + "it" + ], + "name": "Croatia" + } + }, + { + "CU": { + "languages": [ + "es" + ], + "name": "Cuba" + } + }, + { + "CY": { + "languages": [ + "el", + "tr", + "hy" + ], + "name": "Cyprus" + } + }, + { + "CZ": { + "languages": [ + "cs", + "sk" + ], + "name": "Czech Republic" + } + }, + { + "DK": { + "languages": [ + "da", + "fo", + "de", + "kl" + ], + "name": "Denmark" + } + }, + { + "DJ": { + "languages": [ + "ar", + "fr" + ], + "name": "Djibouti" + } + }, + { + "DM": { + "languages": [ + "en" + ], + "name": "Dominica" + } + }, + { + "DO": { + "languages": [ + "es" + ], + "name": "Dominican Republic" + } + }, + { + "TL": { + "languages": [ + "pt" + ], + "name": "Timor Leste" + } + }, + { + "EC": { + "languages": [ + "es" + ], + "name": "Ecuador" + } + }, + { + "EG": { + "languages": [ + "ar" + ], + "name": "Egypt" + } + }, + { + "SV": { + "languages": [ + "es" + ], + "name": "El Salvador" + } + }, + { + "GQ": { + "languages": [ + "es", + "fr" + ], + "name": "Equatorial Guinea" + } + }, + { + "ER": { + "languages": [ + "ar", + "ti" + ], + "name": "Eritrea" + } + }, + { + "EE": { + "languages": [ + "et", + "ru" + ], + "name": "Estonia" + } + }, + { + "ET": { + "languages": [ + "am", + "en" + ], + "name": "Ethiopia" + } + }, + { + "FJ": { + "languages": [ + "en", + "fj" + ], + "name": "Fiji" + } + }, + { + "FI": { + "languages": [ + "fi", + "sv", + "se" + ], + "name": "Finland" + } + }, + { + "FR": { + "languages": [ + "fr", + "co", + "br" + ], + "name": "France" + } + }, + { + "GA": { + "languages": [ + "fr" + ], + "name": "Gabon" + } + }, + { + "GM": { + "languages": [ + "en" + ], + "name": "Gambia" + } + }, + { + "GE": { + "languages": [ + "ab", + "ka", + "os", + "ru" + ], + "name": "Georgia" + } + }, + { + "DE": { + "languages": [ + "de", + "da", + "ro" + ], + "name": "Germany" + } + }, + { + "GH": { + "languages": [ + "en", + "ee", + "tw" + ], + "name": "Ghana" + } + }, + { + "GR": { + "languages": [ + "el" + ], + "name": "Greece" + } + }, + { + "GD": { + "languages": [ + "en" + ], + "name": "Grenada" + } + }, + { + "GT": { + "languages": [ + "es" + ], + "name": "Guatemala" + } + }, + { + "GN": { + "languages": [ + "fr", + "ff" + ], + "name": "Guinea" + } + }, + { + "GN": { + "languages": [ + "pt" + ], + "name": "Guinea" + } + }, + { + "GY": { + "languages": [ + "en" + ], + "name": "Guyana" + } + }, + { + "HT": { + "languages": [ + "fr", + "ht" + ], + "name": "Haiti" + } + }, + { + "HN": { + "languages": [ + "es", + "en" + ], + "name": "Honduras" + } + }, + { + "HU": { + "languages": [ + "hu" + ], + "name": "Hungary" + } + }, + { + "IS": { + "languages": [ + "is" + ], + "name": "Iceland" + } + }, + { + "IN": { + "languages": [ + "en", + "as", + "bn", + "fr", + "gu", + "hi", + "kn", + "ks", + "ml", + "mr", + "ne", + "or", + "pa", + "sa", + "sd", + "ta", + "te", + "ur" + ], + "name": "India" + } + }, + { + "ID": { + "languages": [ + "id", + "jv", + "ml", + "su" + ], + "name": "Indonesia" + } + }, + { + "IR": { + "languages": [ + "fa", + "ku", + "ar" + ], + "name": "Iran" + } + }, + { + "IQ": { + "languages": [ + "ar", + "ku" + ], + "name": "Iraq" + } + }, + { + "IE": { + "languages": [ + "ga", + "en" + ], + "name": "Ireland" + } + }, + { + "IL": { + "languages": [ + "he", + "ar" + ], + "name": "Israel" + } + }, + { + "IT": { + "languages": [ + "it", + "sq", + "ca", + "hr", + "fr", + "de", + "el", + "sc", + "sl", + "en" + ], + "name": "Italy" + } + }, + { + "JM": { + "languages": [ + "en" + ], + "name": "Jamaica" + } + }, + { + "JP": { + "languages": [ + "ja" + ], + "name": "Japan" + } + }, + { + "JO": { + "languages": [ + "ar", + "en" + ], + "name": "Jordan" + } + }, + { + "KZ": { + "languages": [ + "kk", + "ru" + ], + "name": "Kazakhstan" + } + }, + { + "KE": { + "languages": [ + "en", + "sw" + ], + "name": "Kenya" + } + }, + { + "KI": { + "languages": [ + "en" + ], + "name": "Kiribati" + } + }, + { + "KP": { + "languages": [ + "ko" + ], + "name": "North Korea" + } + }, + { + "KR": { + "languages": [ + "ko" + ], + "name": "South Korea" + } + }, + { + "KW": { + "languages": [ + "ar" + ], + "name": "Kuwait" + } + }, + { + "KG": { + "languages": [ + "ky", + "ru" + ], + "name": "Kyrgyzstan" + } + }, + { + "LA": { + "languages": [ + "lo" + ], + "name": "Laos" + } + }, + { + "LV": { + "languages": [ + "lv", + "ru" + ], + "name": "Latvia" + } + }, + { + "LB": { + "languages": [ + "ar", + "fr", + "hy" + ], + "name": "Lebanon" + } + }, + { + "LS": { + "languages": [ + "en", + "st" + ], + "name": "Lesotho" + } + }, + { + "LR": { + "languages": [ + "en" + ], + "name": "Liberia" + } + }, + { + "LY": { + "languages": [ + "ar" + ], + "name": "Libya" + } + }, + { + "LI": { + "languages": [ + "de" + ], + "name": "Liechtenstein" + } + }, + { + "LT": { + "languages": [ + "lt" + ], + "name": "Lithuania" + } + }, + { + "LU": { + "languages": [ + "fr", + "de", + "lb" + ], + "name": "Luxembourg" + } + }, + { + "MK": { + "languages": [ + "mk", + "sq", + "tr" + ], + "name": "Macedonia" + } + }, + { + "MG": { + "languages": [ + "fr", + "en", + "mg" + ], + "name": "Madagascar" + } + }, + { + "MW": { + "languages": [ + "ny", + "en" + ], + "name": "Malawi" + } + }, + { + "MY": { + "languages": [ + "ml", + "en" + ], + "name": "Malaysia" + } + }, + { + "MV": { + "languages": [ + "dv" + ], + "name": "Maldives" + } + }, + { + "ML": { + "languages": [ + "fr" + ], + "name": "Mali" + } + }, + { + "MT": { + "languages": [ + "mt", + "en", + "it" + ], + "name": "Malta" + } + }, + { + "MH": { + "languages": [ + "en", + "mh" + ], + "name": "Marshall Islands" + } + }, + { + "MR": { + "languages": [ + "ar", + "fr", + "ff", + "wo" + ], + "name": "Mauritania" + } + }, + { + "MU": { + "languages": [ + "en" + ], + "name": "Mauritius" + } + }, + { + "MX": { + "languages": [ + "es" + ], + "name": "Mexico" + } + }, + { + "FM": { + "languages": [ + "en" + ], + "name": "Federated States of Micronesia" + } + }, + { + "MD": { + "languages": [ + "ro", + "ru", + "uk" + ], + "name": "Moldova" + } + }, + { + "MC": { + "languages": [ + "fr" + ], + "name": "Monaco" + } + }, + { + "MN": { + "languages": [ + "mn" + ], + "name": "Mongolia" + } + }, + { + "ME": { + "languages": [ + "sq", + "bs", + "hr", + "sr" + ], + "name": "Montenegro" + } + }, + { + "MA": { + "languages": [ + "ar" + ], + "name": "Morocco" + } + }, + { + "MZ": { + "languages": [ + "pt" + ], + "name": "Mozambique" + } + }, + { + "MM": { + "languages": [ + "my" + ], + "name": "Myanmar" + } + }, + { + "NA": { + "languages": [ + "en", + "af", + "de" + ], + "name": "Namibia" + } + }, + { + "NR": { + "languages": [ + "en" + ], + "name": "Nauru" + } + }, + { + "NP": { + "languages": [ + "ne" + ], + "name": "Nepal" + } + }, + { + "NL": { + "languages": [ + "nl", + "li", + "en" + ], + "name": "Netherlands" + } + }, + { + "NZ": { + "languages": [ + "en" + ], + "name": "New Zealand" + } + }, + { + "NI": { + "languages": [ + "es" + ], + "name": "Nicaragua" + } + }, + { + "NE": { + "languages": [ + "fr", + "ha", + "kr" + ], + "name": "Niger" + } + }, + { + "NG": { + "languages": [ + "en", + "ha", + "yo", + "ig" + ], + "name": "Nigeria" + } + }, + { + "NO": { + "languages": [ + "no", + "se", + "ro" + ], + "name": "Norway" + } + }, + { + "OM": { + "languages": [ + "ar" + ], + "name": "Oman" + } + }, + { + "PK": { + "languages": [ + "ur", + "en", + "pa", + "ps", + "sd" + ], + "name": "Pakistan" + } + }, + { + "PW": { + "languages": [ + "en", + "ja" + ], + "name": "Palau" + } + }, + { + "PS": { + "languages": [ + "ar" + ], + "name": "Palestinian Authority" + } + }, + { + "PA": { + "languages": [ + "es" + ], + "name": "Panama" + } + }, + { + "PG": { + "languages": [ + "en", + "ho" + ], + "name": "Papua New Guinea" + } + }, + { + "PY": { + "languages": [ + "es", + "gn" + ], + "name": "Paraguay" + } + }, + { + "PE": { + "languages": [ + "es", + "ay", + "qu" + ], + "name": "Peru" + } + }, + { + "PH": { + "languages": [ + "ar", + "en", + "es", + "tl" + ], + "name": "Philippines" + } + }, + { + "PL": { + "languages": [ + "pl", + "de", + "lt" + ], + "name": "Poland" + } + }, + { + "PT": { + "languages": [ + "pt" + ], + "name": "Portugal" + } + }, + { + "QA": { + "languages": [ + "ar" + ], + "name": "Qatar" + } + }, + { + "RO": { + "languages": [ + "ro", + "hy" + ], + "name": "Romania" + } + }, + { + "RU": { + "languages": [ + "ru", + "hy", + "av", + "az", + "ba", + "ce", + "cv", + "kv", + "os", + "tt" + ], + "name": "Russia" + } + }, + { + "RW": { + "languages": [ + "en", + "fr", + "rw" + ], + "name": "Rwanda" + } + }, + { + "KN": { + "languages": [ + "en" + ], + "name": "Saint Kitts and Nevis" + } + }, + { + "LC": { + "languages": [ + "en" + ], + "name": "Saint Lucia" + } + }, + { + "VC": { + "languages": [ + "en" + ], + "name": "Saint Vincent and the Grenadines" + } + }, + { + "WS": { + "languages": [ + "en", + "sm" + ], + "name": "Samoa" + } + }, + { + "SM": { + "languages": [ + "it" + ], + "name": "San Marino" + } + }, + { + "ST": { + "languages": [ + "pt" + ], + "name": "Sao Tome and Principe" + } + }, + { + "SA": { + "languages": [ + "ar" + ], + "name": "Saudi Arabia" + } + }, + { + "SN": { + "languages": [ + "fr", + "ff", + "wo" + ], + "name": "Senegal" + } + }, + { + "RS": { + "languages": [ + "sr", + "sq", + "hr", + "hu", + "ro", + "sk" + ], + "name": "Serbia" + } + }, + { + "SC": { + "languages": [ + "en", + "fr" + ], + "name": "Seychelles" + } + }, + { + "SL": { + "languages": [ + "en" + ], + "name": "Sierra Leone" + } + }, + { + "SG": { + "languages": [ + "en", + "ml", + "zh", + "ta" + ], + "name": "Singapore" + } + }, + { + "SK": { + "languages": [ + "sk" + ], + "name": "Slovakia" + } + }, + { + "SI": { + "languages": [ + "sl", + "hu", + "it" + ], + "name": "Slovenia" + } + }, + { + "SB": { + "languages": [ + "en" + ], + "name": "Solomon Islands" + } + }, + { + "SO": { + "languages": [ + "so", + "ar" + ], + "name": "Somalia" + } + }, + { + "ZA": { + "languages": [ + "af", + "en", + "st", + "ts", + "tn", + "ve", + "xh" + ], + "name": "South Africa" + } + }, + { + "ES": { + "languages": [ + "es", + "ca", + "gl", + "eu", + "oc" + ], + "name": "Spain" + } + }, + { + "LK": { + "languages": [ + "si", + "ta" + ], + "name": "Sri Lanka" + } + }, + { + "SD": { + "languages": [ + "ar", + "en" + ], + "name": "Sudan" + } + }, + { + "SR": { + "languages": [ + "nl" + ], + "name": "Suriname" + } + }, + { + "SZ": { + "languages": [ + "en" + ], + "name": "Swaziland" + } + }, + { + "SE": { + "languages": [ + "sv", + "fi", + "ro", + "se", + "yi" + ], + "name": "Sweden" + } + }, + { + "CH": { + "languages": [ + "de", + "fr", + "it", + "rm" + ], + "name": "Switzerland" + } + }, + { + "SY": { + "languages": [ + "ar" + ], + "name": "Syria" + } + }, + { + "TJ": { + "languages": [ + "tg", + "ru" + ], + "name": "Tajikistan" + } + }, + { + "TZ": { + "languages": [ + "sw", + "en" + ], + "name": "Tanzania" + } + }, + { + "TH": { + "languages": [ + "th" + ], + "name": "Thailand" + } + }, + { + "TG": { + "languages": [ + "fr" + ], + "name": "Togo" + } + }, + { + "TO": { + "languages": [ + "en" + ], + "name": "Tonga" + } + }, + { + "TT": { + "languages": [ + "en" + ], + "name": "Trinidad and Tobago" + } + }, + { + "TN": { + "languages": [ + "ar", + "fr" + ], + "name": "Tunisia" + } + }, + { + "TR": { + "languages": [ + "tr" + ], + "name": "Turkey" + } + }, + { + "TM": { + "languages": [ + "tk", + "ru" + ], + "name": "Turkmenistan" + } + }, + { + "TV": { + "languages": [ + "en" + ], + "name": "Tuvalu" + } + }, + { + "UG": { + "languages": [ + "en", + "sw" + ], + "name": "Uganda" + } + }, + { + "UA": { + "languages": [ + "uk", + "ru" + ], + "name": "Ukraine" + } + }, + { + "AE": { + "languages": [ + "ar" + ], + "name": "United Arab Emirates" + } + }, + { + "GB": { + "languages": [ + "en" + ], + "name": "United Kingdom" + } + }, + { + "US": { + "languages": [ + "en", + "es", + "nv", + "ch", + "fr", + "sm" + ], + "name": "United States" + } + }, + { + "UY": { + "languages": [ + "es" + ], + "name": "Uruguay" + } + }, + { + "UZ": { + "languages": [ + "uz", + "ru" + ], + "name": "Uzbekistan" + } + }, + { + "VU": { + "languages": [ + "bi", + "en", + "fr" + ], + "name": "Vanuatu" + } + }, + { + "VA": { + "languages": [ + "it" + ], + "name": "Vatican City" + } + }, + { + "VE": { + "languages": [ + "es" + ], + "name": "Venezuela" + } + }, + { + "VN": { + "languages": [ + "vi" + ], + "name": "Vietnam" + } + }, + { + "YE": { + "languages": [ + "ar" + ], + "name": "Yemen" + } + }, + { + "ZM": { + "languages": [ + "en" + ], + "name": "Zambia" + } + } +] \ No newline at end of file diff --git a/lib/Locales/Africa.dart b/lib/Locales/Africa.dart index d3021fc..4fc0fb2 100644 --- a/lib/Locales/Africa.dart +++ b/lib/Locales/Africa.dart @@ -1,3 +1,269 @@ import '../classes/location.dart'; -List africa = []; +List africa = [ + Location( + region: "Africa", + location: "Abidjan", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Accra", + locale: "en_GH.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Addis_Ababa", + locale: "en_ET.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Algiers", + locale: "ar_DZ.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Asmara", + locale: "en_ER.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Bamako", + locale: "fr_ML.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Bangui", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Banjul", + locale: "en_GM.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Bissau", + locale: "pt_GW.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Blantyre", + locale: "en_MW.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Brazzaville", + locale: "fr_CD.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Bujumbura", + locale: "fr_BI.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Cairo", + locale: "ar_EG.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Casablanca", + locale: "ar_MA.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Ceuta", + locale: "es_ES.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Conakry", + locale: "fr_GN.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Dakar", + locale: "fr_SN.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Dar_es_Salaam", + locale: "en_TZ.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Djibouti", + locale: "fr_DJ.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Douala", + locale: "fr_CM.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "El_Aaiun", + locale: "ar_EH.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Freetown", + locale: "en_SL.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Gaborone", + locale: "en_BW.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Harare", + locale: "en_ZW.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Johannesburg", + locale: "en_ZA.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Juba", + locale: "en_SS.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Kampala", + locale: "en_UG.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Khartoum", + locale: "", + ), + Location( + region: "Africa", + location: "Kigali", + locale: "en_RW.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Kinshasa", + locale: "fr_CD.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Lagos", + locale: "en_NG.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Libreville", + locale: "fr_GA.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Lome", + locale: "fr_TG.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Luanda", + locale: "pt_AO.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Lubumbashi", + locale: "fr_CD.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Lusaka", + locale: "en_ZM.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Malabo", + locale: "fr_GQ.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Maputo", + locale: "en_MZ.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Maseru", + locale: "en_LS.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Mbabane", + locale: "en_SZ.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Mogadishu", + locale: "en_SO.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Monrovia", + locale: "en_LR.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Nairobi", + locale: "en_KE.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Ndjamena", + locale: "fr_TD.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Niamey", + locale: "fr_NE.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Nouakchott", + locale: "ar_MR.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Ouagadougou", + locale: "fr_BF.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Porto-Novo", + locale: "fr_BJ.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Sao_Tome", + locale: "pt_ST.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Timbuktu", + locale: "fr_ML.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Tripoli", + locale: "ar_LY.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Tunis", + locale: "fr_TN.UTF-8 UTF-8", + ), + Location( + region: "Africa", + location: "Windhoek", + locale: "en_NA.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/America.dart b/lib/Locales/America.dart index e69de29..7b2d196 100644 --- a/lib/Locales/America.dart +++ b/lib/Locales/America.dart @@ -0,0 +1,724 @@ +import '../classes/location.dart'; + +List america = [ + Location( + region: "America", + location: "Adak", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Anchorage", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Antigua", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Araguaina", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Argentina", + locale: "es_AR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Aruba", + locale: "nl_NL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Asuncion", + locale: "es_PY.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Atikokan", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Atka", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Bahia", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Bahia_Banderas", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Barbados", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Belem", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Belize", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Blanc-Sablon", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Boa_Vista", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Bogota", + locale: "es_CO.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Boise", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Buenos_Aires", + locale: "es_AR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Cambridge_Bay", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Campo_Grande", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Cancun", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Caracas", + locale: "es_VE.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Catamarca", + locale: "es_AR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Cayenne", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Cayman", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Chicago", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Chihuahua", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Coral_Harbour", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Cordoba", + locale: "es_AR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Costa_Rica", + locale: "es_ES.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Creston", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Cuiaba", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Curacao", + locale: "nl_NL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Danmarkshavn", + locale: "da_DK.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Dawson", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Dawson_Creek", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Denver", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Detroit", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Dominica", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Edmonton", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Eirunepe", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "El_Salvador", + locale: "es_SV.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Ensenada", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Fort_Nelson", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Fort_Wayne", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Fortaleza", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Glace_Bay", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Godthab", + locale: "da_DK.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Goose_Bay", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Grand_Turk", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Grenada", + locale: "en_GD.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Guadeloupe", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Guatemala", + locale: "es_GT.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Guayaquil", + locale: "es_EC.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Guyana", + locale: "en_GY.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Halifax", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Havana", + locale: "es_CU.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Hermosillo", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Indiana", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Indianapolis", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Inuvik", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Iqaluit", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Jamaica", + locale: "en_JM.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Jujuy", + locale: "es_AR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Juneau", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Kentucky", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Knox_IN", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Kralendijk", + locale: "nl_NL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "La_Paz", + locale: "es_BO.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Lima", + locale: "es_PE.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Los_Angeles", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Louisville", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Lower_Princes", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Maceio", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Managua", + locale: "es_NI.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Manaus", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Marigot", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Martinique", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Matamoros", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Mazatlan", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Mendoza", + locale: "es_AR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Menominee", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Merida", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Metlakatla", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Mexico_City", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Miquelon", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Moncton", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Monterrey", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Montevideo", + locale: "es_UY.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Montreal", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Montserrat", + locale: "en_MS.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Nassau", + locale: "en_BS.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "New_York", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Nipigon", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Nome", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Noronha", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "North_Dakota", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Nuuk", + locale: "en_GL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Ojinaga", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Panama", + locale: "es_PA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Pangnirtung", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Paramaribo", + locale: "nl_SR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Phoenix", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Port-au-Prince", + locale: "fr_HT.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Porto_Acre", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Port_of_Spain", + locale: "en_TT.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Porto_Velho", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Puerto_Rico", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Punta_Arenas", + locale: "es_CL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Rainy_River", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Rankin_Inlet", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Recife", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Regina", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Resolute", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Rio_Branco", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Rosario", + locale: "es_AR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Santa_Isabel", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Santarem", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Santiago", + locale: "es_CL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Santo_Domingo", + locale: "es_DO.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Sao_Paulo", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Scoresbysund", + locale: "da_DK.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Shiprock", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Sitka", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "St_Barthelemy", + locale: "fr_BL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "St_Johns", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "St_Kitts", + locale: "en_KN.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "St_Lucia", + locale: "en_LC.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "St_Thomas", + locale: "en_VI.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "St_Vincent", + locale: "en_VC.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Swift_Current", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Tegucigalpa", + locale: "es_HN.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Thule", + locale: "en_GL.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Thunder_Bay", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Tijuana", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Toronto", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Tortola", + locale: "en_VG.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Vancouver", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Virgin", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Whitehorse", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Winnipeg", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Yakutat", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "America", + location: "Yellowknife", + locale: "en_CA.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Antarctica.dart b/lib/Locales/Antarctica.dart index e69de29..d845403 100644 --- a/lib/Locales/Antarctica.dart +++ b/lib/Locales/Antarctica.dart @@ -0,0 +1,64 @@ +import '../classes/location.dart'; + +List antarctica = [ + Location( + region: "Antarctica", + location: "Casey", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Davis", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "DumontDurville", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Macquarie", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Mawson", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "McMurdo", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Palmer", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Rothera", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "South Pole", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Syowa", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Troll", + locale: "en_AQ.UTF-8 UTF-8", + ), + Location( + region: "Antarctica", + location: "Vostok", + locale: "en_AQ.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Arctic.dart b/lib/Locales/Arctic.dart index e69de29..570c065 100644 --- a/lib/Locales/Arctic.dart +++ b/lib/Locales/Arctic.dart @@ -0,0 +1,9 @@ +import '../classes/location.dart'; + +List arctic = [ + Location( + region: "Arctic", + location: "Longyearbyen", + locale: "no_NO.UTF-8 UTF-8", + ) +]; diff --git a/lib/Locales/Asia.dart b/lib/Locales/Asia.dart index e69de29..04590a8 100644 --- a/lib/Locales/Asia.dart +++ b/lib/Locales/Asia.dart @@ -0,0 +1,494 @@ +import '../classes/location.dart'; + +List asia = [ + Location( + region: "Asia", + location: "Aden", + locale: "ar_SA.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Almaty", + locale: "kk_KZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Amman", + locale: "ar_JO.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Anadyr", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Aqtau", + locale: "kk_KZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Aqtobe", + locale: "kk_KZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Ashgabat", + locale: "tk_TM.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Ashkhabad", + locale: "tk_TM.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Atyrau", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Baghdad", + locale: "ar_IQ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Bahrain", + locale: "ar_BH.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Baku", + locale: "az_AZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Bangkok", + locale: "th_TH.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Barnaul", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Beirut", + locale: "ar_LB.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Bishkek", + locale: "ky_KG.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Brunei", + locale: "ms_BN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Chita", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Choibalsan", + locale: "mn_MN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Chongqing", + locale: "zh_CN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Chungking", + locale: "zh_CN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Colombo", + locale: "si_LK.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Dacca", + locale: "bn_BD.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Damascus", + locale: "ar_SY.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Dhaka", + locale: "bn_BD.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Dili", + locale: "id_ID.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Dubai", + locale: "ar_AE.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Dushanbe", + locale: "tg_TJ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Famagusta", + locale: "tr_TR.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Gaza", + locale: "ar_PS.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Harbin", + locale: "zh_CN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Hebron", + locale: "ar_PS.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Ho_Chi_Minh", + locale: "vi_VN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Hong_Kong", + locale: "zh_HK.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Hovd", + locale: "mn_MN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Irkutsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Istanbul", + locale: "tr_TR.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Jakarta", + locale: "id_ID.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Jayapura", + locale: "id_ID.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Jerusalem", + locale: "he_IL.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kabul", + locale: "fa_AF.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kamchatka", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Karachi", + locale: "ur_PK.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kashgar", + locale: "zh_CN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kathmandu", + locale: "ne_NP.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Katmandu", + locale: "ne_NP.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Khandyga", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kolkata", + locale: "hi_IN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Krasnoyarsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kuala_Lumpur", + locale: "ms_MY.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kuching", + locale: "ms_MY.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Kuwait", + locale: "ar_KW.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Macao", + locale: "zh_MO.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Macau", + locale: "zh_MO.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Magadan", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Makassar", + locale: "id_ID.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Manila", + locale: "tl_PH.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Muscat", + locale: "ar_OM.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Nicosia", + locale: "el_CY.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Novokuznetsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Novosibirsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Omsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Oral", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Phnom_Penh", + locale: "kh_KH.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Pontianak", + locale: "id_ID.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Pyongyang", + locale: "ko_KP.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Qatar", + locale: "ar_QA.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Qostanay", + locale: "kk_KZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Qyzylorda", + locale: "kk_KZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Rangoon", + locale: "my_MM.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Riyadh", + locale: "ar_SA.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Saigon", + locale: "vi_VN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Sakhalin", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Samarkand", + locale: "uz_UZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Seoul", + locale: "ko_KR.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Shanghai", + locale: "zh_CN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Singapore", + locale: "en_SG.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Srednekolymsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Taipei", + locale: "zh_TW.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Tashkent", + locale: "uz_UZ.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Tbilisi", + locale: "ka_GE.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Tehran", + locale: "fa_IR.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Tel_Aviv", + locale: "he_IL.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Thimbu", + locale: "ne_NP.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Thimphu", + locale: "ne_NP.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Tokyo", + locale: "ja_JP.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Tomsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Ujung_Pandang", + locale: "id_ID.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Ulaanbaatar", + locale: "mn_MN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Ulan_Bator", + locale: "mn_MN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Urumqi", + locale: "zh_CN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Ust-Nera", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Vientiane", + locale: "vi_VN.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Vladivostok", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Yakutsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Yangon", + locale: "my_MM.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Yekaterinburg", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Asia", + location: "Yerevan", + locale: "hy_AM.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Atlantic.dart b/lib/Locales/Atlantic.dart index e69de29..c25e150 100644 --- a/lib/Locales/Atlantic.dart +++ b/lib/Locales/Atlantic.dart @@ -0,0 +1,64 @@ +import '../classes/location.dart'; + +List atlantic = [ + Location( + region: "atlantic", + location: "Azores", + locale: "pt_PT.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Bermuda", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Canary", + locale: "es_ES.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Cape_Verde", + locale: "pt_PT.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Faeroe", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Faroe", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Jan_Mayen", + locale: "nb_NO.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Madeira", + locale: "pt_PT.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Reykjavik", + locale: "is_IS.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "South_Georgia", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "Stanley", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "atlantic", + location: "St_Helena", + locale: "en_GB.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Australia.dart b/lib/Locales/Australia.dart index e69de29..2b15453 100644 --- a/lib/Locales/Australia.dart +++ b/lib/Locales/Australia.dart @@ -0,0 +1,89 @@ +import '../classes/location.dart'; + +List australia = [ + Location( + region: "Australia", + location: "Adelaide", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Brisbane", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Broken_Hill", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Canberra", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Currie", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Darwin", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Eucla", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Hobart", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Lindeman", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Lord_Howe", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Melbourne", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Perth", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Queensland", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Sydney", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Tasmania", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Victoria", + locale: "en_AU.UTF-8 UTF-8", + ), + Location( + region: "Australia", + location: "Yancowinna", + locale: "en_AU.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Brazil.dart b/lib/Locales/Brazil.dart index e69de29..877a119 100644 --- a/lib/Locales/Brazil.dart +++ b/lib/Locales/Brazil.dart @@ -0,0 +1,14 @@ +import '../classes/location.dart'; + +List brazil = [ + Location( + region: "Brazil", + location: "Acre", + locale: "pt_BR.UTF-8 UTF-8", + ), + Location( + region: "Brazil", + location: "DeNoronha", + locale: "pt_BR.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Canada.dart b/lib/Locales/Canada.dart index e69de29..d8a2a16 100644 --- a/lib/Locales/Canada.dart +++ b/lib/Locales/Canada.dart @@ -0,0 +1,39 @@ +import '../classes/location.dart'; + +List canada = [ + Location( + region: "canada", + location: "Atlantic", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "canada", + location: "Central", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "canada", + location: "Eastern", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "canada", + location: "Mountain", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "canada", + location: "Newfoundland", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "canada", + location: "Pacific", + locale: "en_CA.UTF-8 UTF-8", + ), + Location( + region: "canada", + location: "Yukon", + locale: "en_CA.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Chile.dart b/lib/Locales/Chile.dart index e69de29..796fca3 100644 --- a/lib/Locales/Chile.dart +++ b/lib/Locales/Chile.dart @@ -0,0 +1,14 @@ +import '../classes/location.dart'; + +List chile = [ + Location( + region: "Chile", + location: "Continental", + locale: "es_CL.UTF-8 UTF-8", + ), + Location( + region: "Chile", + location: "EasterIsland", + locale: "es_CL.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Europe.dart b/lib/Locales/Europe.dart index c4e2cef..9ea6aca 100644 --- a/lib/Locales/Europe.dart +++ b/lib/Locales/Europe.dart @@ -2,18 +2,313 @@ import '../classes/location.dart'; List europe = [ Location( - region: 'Europe', - location: 'Berlin', - locale: 'de_DE.UTF-8 UTF-8', + region: "Europe", + location: "Amsterdam", + locale: "nl_NL.UTF-8 UTF-8", ), Location( - region: 'Europe', - location: 'Brussels', - locale: 'fr_BE.UTF-8 UTF-8', + region: "Europe", + location: "Andorra", + locale: "ca_ES.UTF-8 UTF-8", ), Location( - region: 'Europe', - location: 'Copenhagen', - locale: 'da_DK.UTF-8 UTF-8', + region: "Europe", + location: "Athens", + locale: "el_GR.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Belfast", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Belgrade", + locale: "sr_RS.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Berlin", + locale: "de_DE.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Bratislava", + locale: "sk_SK.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Brussels", + locale: "nl_BE.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Bucharest", + locale: "ro_RO.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Budapest", + locale: "hu_HU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Busingen", + locale: "de_DE.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Chisinau", + locale: "ro_RO.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Copenhagen", + locale: "da_DK.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Dublin", + locale: "en_IE.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Gibraltar", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Guernsey", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Helsinki", + locale: "fi_FI.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Isle_of_Man", + locale: "en_IM.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Istanbul", + locale: "tr_TR.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Jersey", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Kaliningrad", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Kiev", + locale: "uk_UA.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Kirov", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Lisbon", + locale: "pt_PT.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Ljubljana", + locale: "sl_SI.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "London", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Luxembourg", + locale: "fr_LU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Madrid", + locale: "es_ES.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Malta", + locale: "en_GB.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Mariehamn", + locale: "sv_SE.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Minsk", + locale: "be_BY.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Monaco", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Moscow", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Nicosia", + locale: "el_GR.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Oslo", + locale: "no_NO.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Paris", + locale: "fr_FR.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Podgorica", + locale: "sr_RS.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Prague", + locale: "cs_CZ.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Riga", + locale: "lv_LV.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Rome", + locale: "it_IT.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Samara", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "San_Marino", + locale: "it_IT.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Sarajevo", + locale: "bs_BA.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Saratov", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Simferopol", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Skopje", + locale: "mk_MK.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Sofia", + locale: "bg_BG.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Stockholm", + locale: "sv_SE.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Tallinn", + locale: "et_EE.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Tirane", + locale: "sq_AL.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Tiraspol", + locale: "ro_RO.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Ulyanovsk", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Uzhgorod", + locale: "uk_UA.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Vaduz", + locale: "de_AT.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Vatican", + locale: "it_IT.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Vienna", + locale: "de_AT.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Vilnius", + locale: "lt_LT.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Volgograd", + locale: "ru_RU.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Warsaw", + locale: "pl_PL.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Zagreb", + locale: "hr_HR.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Zaporozhye", + locale: "uk_UA.UTF-8 UTF-8", + ), + Location( + region: "Europe", + location: "Zurich", + locale: "de_CH.UTF-8 UTF-8", ), ]; diff --git a/lib/Locales/Indian.dart b/lib/Locales/Indian.dart index e69de29..0ff62be 100644 --- a/lib/Locales/Indian.dart +++ b/lib/Locales/Indian.dart @@ -0,0 +1,59 @@ +import '../classes/location.dart'; + +List indian = [ + Location( + region: "Indian", + location: "Antananarivo", + locale: "fr_MG.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Chagos", + locale: "en_IO.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Christmas", + locale: "en_CX.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Cocos", + locale: "en_CC.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Comoro", + locale: "fr_KM.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Kerguelen", + locale: "fr_TF.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Mahe", + locale: "en_SC.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Maldives", + locale: "en_MV.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Mauritius", + locale: "en_MU.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Mayotte", + locale: "fr_YT.UTF-8 UTF-8", + ), + Location( + region: "Indian", + location: "Reunion", + locale: "fr_RE.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Mexico.dart b/lib/Locales/Mexico.dart index e69de29..ae091dd 100644 --- a/lib/Locales/Mexico.dart +++ b/lib/Locales/Mexico.dart @@ -0,0 +1,19 @@ +import '../classes/location.dart'; + +List mexico = [ + Location( + region: "Mexico", + location: "BajaNorte", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "Mexico", + location: "BajaSur", + locale: "es_MX.UTF-8 UTF-8", + ), + Location( + region: "Mexico", + location: "General", + locale: "es_MX.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/Other.dart b/lib/Locales/Other.dart deleted file mode 100644 index e69de29..0000000 diff --git a/lib/Locales/Pacific.dart b/lib/Locales/Pacific.dart index e69de29..01ab091 100644 --- a/lib/Locales/Pacific.dart +++ b/lib/Locales/Pacific.dart @@ -0,0 +1,219 @@ +import '../classes/location.dart'; + +List pacific = [ + Location( + region: "Pacific", + location: "Apia", + locale: "en_WS.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Auckland", + locale: "en_NZ.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Bougainville", + locale: "en_PG.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Chatham", + locale: "en_NZ.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Chuuk", + locale: "en_FM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Easter", + locale: "en_CL.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Efate", + locale: "en_VU.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Enderbury", + locale: "en_KI.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Fakaofo", + locale: "en_TK.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Fiji", + locale: "en_FJ.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Funafuti", + locale: "en_TV.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Galapagos", + locale: "en_EC.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Gambier", + locale: "en_PF.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Guadalcanal", + locale: "en_SB.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Guam", + locale: "en_GU.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Honolulu", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Johnston", + locale: "en_UM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Kiritimati", + locale: "en_KI.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Kosrae", + locale: "en_FM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Kwajalein", + locale: "en_MH.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Majuro", + locale: "en_MH.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Marquesas", + locale: "en_PF.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Midway", + locale: "en_UM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Nauru", + locale: "en_NR.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Niue", + locale: "en_NU.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Norfolk", + locale: "en_NF.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Noumea", + locale: "en_NC.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Pago_Pago", + locale: "en_AS.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Palau", + locale: "en_PW.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Pitcairn", + locale: "en_PN.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Pohnpei", + locale: "en_FM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Ponape", + locale: "en_FM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Port_Moresby", + locale: "en_PG.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Rarotonga", + locale: "en_CK.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Saipan", + locale: "en_MP.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Samoa", + locale: "en_AS.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Tahiti", + locale: "en_PF.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Tarawa", + locale: "en_KI.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Tongatapu", + locale: "en_TO.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Truk", + locale: "en_FM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Wake", + locale: "en_UM.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Wallis", + locale: "en_WF.UTF-8 UTF-8", + ), + Location( + region: "Pacific", + location: "Yap", + locale: "en_FM.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/US.dart b/lib/Locales/US.dart index e69de29..66d8156 100644 --- a/lib/Locales/US.dart +++ b/lib/Locales/US.dart @@ -0,0 +1,64 @@ +import '../classes/location.dart'; + +List us = [ + Location( + region: "US", + location: "Alaska", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Aleutian", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Arizona", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Central", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Eastern", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "East-Indiana", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Hawaii", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Indiana-Starke", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Michigan", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Mountain", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Pacific", + locale: "en_US.UTF-8 UTF-8", + ), + Location( + region: "US", + location: "Samoa", + locale: "en_US.UTF-8 UTF-8", + ), +]; diff --git a/lib/Locales/locales.dart b/lib/Locales/locales.dart index 8937a8a..a50df51 100644 --- a/lib/Locales/locales.dart +++ b/lib/Locales/locales.dart @@ -1,15 +1,39 @@ -export 'Africa.dart'; -export 'America.dart'; -export 'Antarctica.dart'; -export 'Asia.dart'; -export 'Atlantic.dart'; -export 'Australia.dart'; -export 'Brazil.dart'; -export 'Canada.dart'; -export 'Chile.dart'; -export 'Europe.dart'; -export 'Indian.dart'; -export 'Mexico.dart'; -export 'Pacific.dart'; -export 'US.dart'; -export 'Other.dart'; +import 'Africa.dart'; +import 'America.dart'; +import 'Antarctica.dart'; +import 'Asia.dart'; +import 'Atlantic.dart'; +import 'Australia.dart'; +import 'Brazil.dart'; +import 'Canada.dart'; +import 'Chile.dart'; +import 'Europe.dart'; +import 'Indian.dart'; +import 'Mexico.dart'; +import 'Pacific.dart'; +import 'US.dart'; +import '../classes/location.dart'; + +class Local { + List location = [Location()]; + String name = ""; + + Local(this.location, this.name); +} + +List locations = [ + Local(africa, "Africa"), + Local(america, "America"), + Local(antarctica, "Antarctica"), + Local(asia, "Asia"), + Local(atlantic, "Atlantic"), + Local(australia, "Australia"), + Local(brazil, "Brazil"), + Local(canada, "Canada"), + Local(chile, "Chile"), + Local(europe, "Europe"), + Local(indian, "Indian"), + Local(mexico, "Mexico"), + Local(pacific, "Pacific"), + Local(us, "US"), +]; diff --git a/lib/functions/Region.dart b/lib/functions/Region.dart index aff8565..43af0c4 100644 --- a/lib/functions/Region.dart +++ b/lib/functions/Region.dart @@ -1,7 +1,32 @@ import 'package:flutter/material.dart'; String selectedRegion = ""; -Widget region(next) { + +Widget locationTemplate(next, location) { + return Container( + padding: const EdgeInsets.all(8), + child: ElevatedButton( + onPressed: () { + next(); + selectedRegion = location.name; + }, + style: TextButton.styleFrom( + primary: Colors.white, + backgroundColor: const Color.fromARGB(100, 169, 0, 255), + padding: const EdgeInsets.all(10), + ), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text(location.name), + ], + ), + ), + //color: Color.fromARGB(255, 83, 83, 83), + ); +} + +Widget region(next, locations) { return SingleChildScrollView( child: Column( mainAxisAlignment: MainAxisAlignment.start, @@ -27,59 +52,9 @@ Widget region(next) { crossAxisSpacing: 10, mainAxisSpacing: 10, crossAxisCount: 3, - children: [ - Container( - padding: const EdgeInsets.all(8), - child: ElevatedButton( - onPressed: () { - next(); - selectedRegion = "Europe"; - }, - child: Text('Europe'), - ), - //color: Colors.teal[100], - ), - Container( - padding: const EdgeInsets.all(8), - child: ElevatedButton( - onPressed: () {}, - child: Text('English'), - ), - //color: Colors.teal[100], - ), - Container( - padding: const EdgeInsets.all(8), - child: ElevatedButton( - onPressed: () {}, - child: Text('English'), - ), - //color: Colors.teal[100], - ), - Container( - padding: const EdgeInsets.all(8), - child: ElevatedButton( - onPressed: () {}, - child: Text('English'), - ), - //color: Colors.teal[100], - ), - Container( - padding: const EdgeInsets.all(8), - child: ElevatedButton( - onPressed: () {}, - child: Text('English'), - ), - //color: Colors.teal[100], - ), - Container( - padding: const EdgeInsets.all(8), - child: ElevatedButton( - onPressed: () {}, - child: Text('English'), - ), - //color: Colors.teal[100], - ), - ], + children: locations + .map((location) => locationTemplate(next, location)) + .toList(), ), ], ), diff --git a/lib/functions/locale.dart b/lib/functions/locale.dart index 6bcae72..7ddf7f9 100644 --- a/lib/functions/locale.dart +++ b/lib/functions/locale.dart @@ -1,15 +1,17 @@ import 'package:flutter/material.dart'; import 'Region.dart'; import 'location.dart'; +import 'package:jade_gui/Locales/locales.dart'; -Widget locale(next, nextPage, selectlocation, isnextpage, Europe) { +Widget locale(next, nextPage, selectlocation, isnextpage) { Widget widget; selectlocation(getSelectedRegion()); String selectedregion = getSelectedRegion(); + print(selectedregion); if (isnextpage == false) { - widget = region(nextPage); + widget = region(nextPage, locations); } else { - widget = location(selectedregion, Europe); + widget = location(selectedregion, next); } return widget; } diff --git a/lib/functions/location.dart b/lib/functions/location.dart index 9994d9f..b1a689b 100644 --- a/lib/functions/location.dart +++ b/lib/functions/location.dart @@ -1,18 +1,34 @@ import 'package:flutter/material.dart'; -import '../classes/location.dart'; +import '../Locales/locales.dart'; -Widget locationTemplate(location) { +Widget locationTemplate(location, nextSlide) { return Container( padding: const EdgeInsets.all(8), child: ElevatedButton( - onPressed: () {}, - child: Text(location), + onPressed: () { + nextSlide(); + }, + child: Column( + children: [ + Image( + image: AssetImage( + '${location.image}', + ), + height: 300, + width: 300, + ), + Text(location.location, + style: const TextStyle( + fontWeight: FontWeight.bold, + )), + ], + ), ), //color: Colors.teal[100], ); } -Widget location(region, europe) { +Widget location(region, nextSlide) { return SingleChildScrollView( child: Column( mainAxisAlignment: MainAxisAlignment.start, @@ -43,49 +59,134 @@ Widget location(region, europe) { crossAxisSpacing: 10, mainAxisSpacing: 10, crossAxisCount: 3, - children: options(region, europe), + children: options(region, locations, nextSlide), ), ], ), ); } -List options(region, europe) { +List options(region, locations, nextSlide) { List widget; switch (region) { - case "Europe": + case "Africa": + { + widget = locations[0] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "America": + { + widget = locations[1] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Antarctica": + { + widget = locations[2] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Arctic": { - widget = europe - .map((location) => locationTemplate(location.location)) + widget = locations[3] + .location + .map((location) => locationTemplate(location, nextSlide)) .toList(); break; } case "Asia": { - widget = europe - .map((location) => locationTemplate(location.location)) + widget = locations[4] + .location + .map((location) => locationTemplate(location, nextSlide)) .toList(); break; } - case "Africa": + case "Atlantic": + { + widget = locations[5] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Australia": + { + widget = locations[6] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Brazil": + { + widget = locations[7] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Canada": + { + widget = locations[8] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Chile": + { + widget = locations[9] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Europe": + { + widget = locations[10] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Indian": + { + widget = locations[11] + .location + .map((location) => locationTemplate(location, nextSlide)) + .toList(); + break; + } + case "Mexico": { - widget = europe - .map((location) => locationTemplate(location.location)) + widget = locations[12] + .location + .map((location) => locationTemplate(location, nextSlide)) .toList(); break; } - case "North America": + case "Pacific": { - widget = europe - .map((location) => locationTemplate(location.location)) + widget = locations[13] + .location + .map((location) => locationTemplate(location, nextSlide)) .toList(); break; } - case "South America": + case "US": { - widget = europe - .map((location) => locationTemplate(location.location)) + widget = locations[14] + .location + .map((location) => locationTemplate(location, nextSlide)) .toList(); break; } diff --git a/lib/main.dart b/lib/main.dart index f16faf1..4e7abbf 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,24 +1,24 @@ import 'package:flutter/material.dart'; import 'functions/welcome.dart'; import 'functions/locale.dart'; -import 'classes/location.dart'; -import 'Locales/locales.dart'; +//import 'classes/location.dart'; +//import 'Locales/locales.dart'; void main() => runApp( - MaterialApp( + const MaterialApp( debugShowCheckedModeBanner: false, - home: jadegui(), + home: Jadegui(), ), ); -class jadegui extends StatefulWidget { - const jadegui({Key? key}) : super(key: key); +class Jadegui extends StatefulWidget { + const Jadegui({Key? key}) : super(key: key); @override - _jadeguiState createState() => _jadeguiState(); + _JadeguiState createState() => _JadeguiState(); } -class _jadeguiState extends State { +class _JadeguiState extends State { int _selectedIndex = 0; bool nextpage = false; void nextslide() { @@ -30,11 +30,11 @@ class _jadeguiState extends State { @override Widget build(BuildContext context) { return Scaffold( - backgroundColor: Color.fromARGB(0, 17, 17, 17), + backgroundColor: const Color.fromARGB(0, 17, 17, 17), body: Row( children: [ NavigationRail( - backgroundColor: Color.fromARGB(0, 27, 27, 27), + backgroundColor: const Color.fromARGB(0, 27, 27, 27), selectedIndex: _selectedIndex, onDestinationSelected: (int index) { setState(() { @@ -252,7 +252,7 @@ class _jadeguiState extends State { nextpage = true; }); } - }, nextpage, europe); + }, nextpage); break; case 2: widget = const Text(