diff --git a/countries/countries.intent b/countries/countries.intent index b3ab2c2..652d06b 100644 --- a/countries/countries.intent +++ b/countries/countries.intent @@ -27,258 +27,12 @@ entities: seeds: + # The full ISO 3166 list is DATA, not model: it lives in an authored CSV (data/countries.csv, + # physical column names in the header) referenced by path - the intent stays lean, only the + # .csvim is generated. Small sets whose values are part of the flows/UX stay inline (cities). - name: countries entity: Country - rows: - - { id: 1, name: "Afghanistan", code2: "AF", code3: "AFG", numeric: "004" } - - { id: 2, name: "Albania", code2: "AL", code3: "ALB", numeric: "008" } - - { id: 3, name: "Algeria", code2: "DZ", code3: "DZA", numeric: "012" } - - { id: 4, name: "American Samoa", code2: "AS", code3: "ASM", numeric: "016" } - - { id: 5, name: "Andorra", code2: "AD", code3: "AND", numeric: "020" } - - { id: 6, name: "Angola", code2: "AO", code3: "AGO", numeric: "024" } - - { id: 7, name: "Anguilla", code2: "AI", code3: "AIA", numeric: "660" } - - { id: 8, name: "Antarctica", code2: "AQ", code3: "ATA", numeric: "010" } - - { id: 9, name: "Antigua and Barbuda", code2: "AG", code3: "ATG", numeric: "028" } - - { id: 10, name: "Argentina", code2: "AR", code3: "ARG", numeric: "032" } - - { id: 11, name: "Armenia", code2: "AM", code3: "ARM", numeric: "051" } - - { id: 12, name: "Aruba", code2: "AW", code3: "ABW", numeric: "533" } - - { id: 13, name: "Australia", code2: "AU", code3: "AUS", numeric: "036" } - - { id: 14, name: "Austria", code2: "AT", code3: "AUT", numeric: "040" } - - { id: 15, name: "Azerbaijan", code2: "AZ", code3: "AZE", numeric: "031" } - - { id: 16, name: "Bahamas (the)", code2: "BS", code3: "BHS", numeric: "044" } - - { id: 17, name: "Bahrain", code2: "BH", code3: "BHR", numeric: "048" } - - { id: 18, name: "Bangladesh", code2: "BD", code3: "BGD", numeric: "050" } - - { id: 19, name: "Barbados", code2: "BB", code3: "BRB", numeric: "052" } - - { id: 20, name: "Belarus", code2: "BY", code3: "BLR", numeric: "112" } - - { id: 21, name: "Belgium", code2: "BE", code3: "BEL", numeric: "056" } - - { id: 22, name: "Belize", code2: "BZ", code3: "BLZ", numeric: "084" } - - { id: 23, name: "Benin", code2: "BJ", code3: "BEN", numeric: "204" } - - { id: 24, name: "Bermuda", code2: "BM", code3: "BMU", numeric: "060" } - - { id: 25, name: "Bhutan", code2: "BT", code3: "BTN", numeric: "064" } - - { id: 26, name: "Bolivia (Plurinational State of)", code2: "BO", code3: "BOL", numeric: "068" } - - { id: 27, name: "Bonaire, Sint Eustatius and Saba", code2: "BQ", code3: "BES", numeric: "535" } - - { id: 28, name: "Bosnia and Herzegovina", code2: "BA", code3: "BIH", numeric: "070" } - - { id: 29, name: "Botswana", code2: "BW", code3: "BWA", numeric: "072" } - - { id: 30, name: "Bouvet Island", code2: "BV", code3: "BVT", numeric: "074" } - - { id: 31, name: "Brazil", code2: "BR", code3: "BRA", numeric: "076" } - - { id: 32, name: "British Indian Ocean Territory (the)", code2: "IO", code3: "IOT", numeric: "086" } - - { id: 33, name: "Brunei Darussalam", code2: "BN", code3: "BRN", numeric: "096" } - - { id: 34, name: "Bulgaria", code2: "BG", code3: "BGR", numeric: "100" } - - { id: 35, name: "Burkina Faso", code2: "BF", code3: "BFA", numeric: "854" } - - { id: 36, name: "Burundi", code2: "BI", code3: "BDI", numeric: "108" } - - { id: 37, name: "Cabo Verde", code2: "CV", code3: "CPV", numeric: "132" } - - { id: 38, name: "Cambodia", code2: "KH", code3: "KHM", numeric: "116" } - - { id: 39, name: "Cameroon", code2: "CM", code3: "CMR", numeric: "120" } - - { id: 40, name: "Canada", code2: "CA", code3: "CAN", numeric: "124" } - - { id: 41, name: "Cayman Islands (the)", code2: "KY", code3: "CYM", numeric: "136" } - - { id: 42, name: "Central African Republic (the)", code2: "CF", code3: "CAF", numeric: "140" } - - { id: 43, name: "Chad", code2: "TD", code3: "TCD", numeric: "148" } - - { id: 44, name: "Chile", code2: "CL", code3: "CHL", numeric: "152" } - - { id: 45, name: "China", code2: "CN", code3: "CHN", numeric: "156" } - - { id: 46, name: "Christmas Island", code2: "CX", code3: "CXR", numeric: "162" } - - { id: 47, name: "Cocos (Keeling) Islands (the)", code2: "CC", code3: "CCK", numeric: "166" } - - { id: 48, name: "Colombia", code2: "CO", code3: "COL", numeric: "170" } - - { id: 49, name: "Comoros (the)", code2: "KM", code3: "COM", numeric: "174" } - - { id: 50, name: "Congo (the Democratic Republic of the)", code2: "CD", code3: "COD", numeric: "180" } - - { id: 51, name: "Congo (the)", code2: "CG", code3: "COG", numeric: "178" } - - { id: 52, name: "Cook Islands (the)", code2: "CK", code3: "COK", numeric: "184" } - - { id: 53, name: "Costa Rica", code2: "CR", code3: "CRI", numeric: "188" } - - { id: 54, name: "Croatia", code2: "HR", code3: "HRV", numeric: "191" } - - { id: 55, name: "Cuba", code2: "CU", code3: "CUB", numeric: "192" } - - { id: 56, name: "Curaçao", code2: "CW", code3: "CUW", numeric: "531" } - - { id: 57, name: "Cyprus", code2: "CY", code3: "CYP", numeric: "196" } - - { id: 58, name: "Czechia", code2: "CZ", code3: "CZE", numeric: "203" } - - { id: 59, name: "Côte d'Ivoire", code2: "CI", code3: "CIV", numeric: "384" } - - { id: 60, name: "Denmark", code2: "DK", code3: "DNK", numeric: "208" } - - { id: 61, name: "Djibouti", code2: "DJ", code3: "DJI", numeric: "262" } - - { id: 62, name: "Dominica", code2: "DM", code3: "DMA", numeric: "212" } - - { id: 63, name: "Dominican Republic (the)", code2: "DO", code3: "DOM", numeric: "214" } - - { id: 64, name: "Ecuador", code2: "EC", code3: "ECU", numeric: "218" } - - { id: 65, name: "Egypt", code2: "EG", code3: "EGY", numeric: "818" } - - { id: 66, name: "El Salvador", code2: "SV", code3: "SLV", numeric: "222" } - - { id: 67, name: "Equatorial Guinea", code2: "GQ", code3: "GNQ", numeric: "226" } - - { id: 68, name: "Eritrea", code2: "ER", code3: "ERI", numeric: "232" } - - { id: 69, name: "Estonia", code2: "EE", code3: "EST", numeric: "233" } - - { id: 70, name: "Eswatini", code2: "SZ", code3: "SWZ", numeric: "748" } - - { id: 71, name: "Ethiopia", code2: "ET", code3: "ETH", numeric: "231" } - - { id: 72, name: "Falkland Islands (the) [Malvinas]", code2: "FK", code3: "FLK", numeric: "238" } - - { id: 73, name: "Faroe Islands (the)", code2: "FO", code3: "FRO", numeric: "234" } - - { id: 74, name: "Fiji", code2: "FJ", code3: "FJI", numeric: "242" } - - { id: 75, name: "Finland", code2: "FI", code3: "FIN", numeric: "246" } - - { id: 76, name: "France", code2: "FR", code3: "FRA", numeric: "250" } - - { id: 77, name: "French Guiana", code2: "GF", code3: "GUF", numeric: "254" } - - { id: 78, name: "French Polynesia", code2: "PF", code3: "PYF", numeric: "258" } - - { id: 79, name: "French Southern Territories (the)", code2: "TF", code3: "ATF", numeric: "260" } - - { id: 80, name: "Gabon", code2: "GA", code3: "GAB", numeric: "266" } - - { id: 81, name: "Gambia (the)", code2: "GM", code3: "GMB", numeric: "270" } - - { id: 82, name: "Georgia", code2: "GE", code3: "GEO", numeric: "268" } - - { id: 83, name: "Germany", code2: "DE", code3: "DEU", numeric: "276" } - - { id: 84, name: "Ghana", code2: "GH", code3: "GHA", numeric: "288" } - - { id: 85, name: "Gibraltar", code2: "GI", code3: "GIB", numeric: "292" } - - { id: 86, name: "Greece", code2: "GR", code3: "GRC", numeric: "300" } - - { id: 87, name: "Greenland", code2: "GL", code3: "GRL", numeric: "304" } - - { id: 88, name: "Grenada", code2: "GD", code3: "GRD", numeric: "308" } - - { id: 89, name: "Guadeloupe", code2: "GP", code3: "GLP", numeric: "312" } - - { id: 90, name: "Guam", code2: "GU", code3: "GUM", numeric: "316" } - - { id: 91, name: "Guatemala", code2: "GT", code3: "GTM", numeric: "320" } - - { id: 92, name: "Guernsey", code2: "GG", code3: "GGY", numeric: "831" } - - { id: 93, name: "Guinea", code2: "GN", code3: "GIN", numeric: "324" } - - { id: 94, name: "Guinea-Bissau", code2: "GW", code3: "GNB", numeric: "624" } - - { id: 95, name: "Guyana", code2: "GY", code3: "GUY", numeric: "328" } - - { id: 96, name: "Haiti", code2: "HT", code3: "HTI", numeric: "332" } - - { id: 97, name: "Heard Island and McDonald Islands", code2: "HM", code3: "HMD", numeric: "334" } - - { id: 98, name: "Holy See (the)", code2: "VA", code3: "VAT", numeric: "336" } - - { id: 99, name: "Honduras", code2: "HN", code3: "HND", numeric: "340" } - - { id: 100, name: "Hong Kong", code2: "HK", code3: "HKG", numeric: "344" } - - { id: 101, name: "Hungary", code2: "HU", code3: "HUN", numeric: "348" } - - { id: 102, name: "Iceland", code2: "IS", code3: "ISL", numeric: "352" } - - { id: 103, name: "India", code2: "IN", code3: "IND", numeric: "356" } - - { id: 104, name: "Indonesia", code2: "ID", code3: "IDN", numeric: "360" } - - { id: 105, name: "Iran (Islamic Republic of)", code2: "IR", code3: "IRN", numeric: "364" } - - { id: 106, name: "Iraq", code2: "IQ", code3: "IRQ", numeric: "368" } - - { id: 107, name: "Ireland", code2: "IE", code3: "IRL", numeric: "372" } - - { id: 108, name: "Isle of Man", code2: "IM", code3: "IMN", numeric: "833" } - - { id: 109, name: "Israel", code2: "IL", code3: "ISR", numeric: "376" } - - { id: 110, name: "Italy", code2: "IT", code3: "ITA", numeric: "380" } - - { id: 111, name: "Jamaica", code2: "JM", code3: "JAM", numeric: "388" } - - { id: 112, name: "Japan", code2: "JP", code3: "JPN", numeric: "392" } - - { id: 113, name: "Jersey", code2: "JE", code3: "JEY", numeric: "832" } - - { id: 114, name: "Jordan", code2: "JO", code3: "JOR", numeric: "400" } - - { id: 115, name: "Kazakhstan", code2: "KZ", code3: "KAZ", numeric: "398" } - - { id: 116, name: "Kenya", code2: "KE", code3: "KEN", numeric: "404" } - - { id: 117, name: "Kiribati", code2: "KI", code3: "KIR", numeric: "296" } - - { id: 118, name: "Korea (the Democratic People's Republic of)", code2: "KP", code3: "PRK", numeric: "408" } - - { id: 119, name: "Korea (the Republic of)", code2: "KR", code3: "KOR", numeric: "410" } - - { id: 120, name: "Kuwait", code2: "KW", code3: "KWT", numeric: "414" } - - { id: 121, name: "Kyrgyzstan", code2: "KG", code3: "KGZ", numeric: "417" } - - { id: 122, name: "Lao People's Democratic Republic (the)", code2: "LA", code3: "LAO", numeric: "418" } - - { id: 123, name: "Latvia", code2: "LV", code3: "LVA", numeric: "428" } - - { id: 124, name: "Lebanon", code2: "LB", code3: "LBN", numeric: "422" } - - { id: 125, name: "Lesotho", code2: "LS", code3: "LSO", numeric: "426" } - - { id: 126, name: "Liberia", code2: "LR", code3: "LBR", numeric: "430" } - - { id: 127, name: "Libya", code2: "LY", code3: "LBY", numeric: "434" } - - { id: 128, name: "Liechtenstein", code2: "LI", code3: "LIE", numeric: "438" } - - { id: 129, name: "Lithuania", code2: "LT", code3: "LTU", numeric: "440" } - - { id: 130, name: "Luxembourg", code2: "LU", code3: "LUX", numeric: "442" } - - { id: 131, name: "Macao", code2: "MO", code3: "MAC", numeric: "446" } - - { id: 132, name: "Madagascar", code2: "MG", code3: "MDG", numeric: "450" } - - { id: 133, name: "Malawi", code2: "MW", code3: "MWI", numeric: "454" } - - { id: 134, name: "Malaysia", code2: "MY", code3: "MYS", numeric: "458" } - - { id: 135, name: "Maldives", code2: "MV", code3: "MDV", numeric: "462" } - - { id: 136, name: "Mali", code2: "ML", code3: "MLI", numeric: "466" } - - { id: 137, name: "Malta", code2: "MT", code3: "MLT", numeric: "470" } - - { id: 138, name: "Marshall Islands (the)", code2: "MH", code3: "MHL", numeric: "584" } - - { id: 139, name: "Martinique", code2: "MQ", code3: "MTQ", numeric: "474" } - - { id: 140, name: "Mauritania", code2: "MR", code3: "MRT", numeric: "478" } - - { id: 141, name: "Mauritius", code2: "MU", code3: "MUS", numeric: "480" } - - { id: 142, name: "Mayotte", code2: "YT", code3: "MYT", numeric: "175" } - - { id: 143, name: "Mexico", code2: "MX", code3: "MEX", numeric: "484" } - - { id: 144, name: "Micronesia (Federated States of)", code2: "FM", code3: "FSM", numeric: "583" } - - { id: 145, name: "Moldova (the Republic of)", code2: "MD", code3: "MDA", numeric: "498" } - - { id: 146, name: "Monaco", code2: "MC", code3: "MCO", numeric: "492" } - - { id: 147, name: "Mongolia", code2: "MN", code3: "MNG", numeric: "496" } - - { id: 148, name: "Montenegro", code2: "ME", code3: "MNE", numeric: "499" } - - { id: 149, name: "Montserrat", code2: "MS", code3: "MSR", numeric: "500" } - - { id: 150, name: "Morocco", code2: "MA", code3: "MAR", numeric: "504" } - - { id: 151, name: "Mozambique", code2: "MZ", code3: "MOZ", numeric: "508" } - - { id: 152, name: "Myanmar", code2: "MM", code3: "MMR", numeric: "104" } - - { id: 153, name: "Namibia", code2: "NA", code3: "NAM", numeric: "516" } - - { id: 154, name: "Nauru", code2: "NR", code3: "NRU", numeric: "520" } - - { id: 155, name: "Nepal", code2: "NP", code3: "NPL", numeric: "524" } - - { id: 156, name: "Netherlands (the)", code2: "NL", code3: "NLD", numeric: "528" } - - { id: 157, name: "New Caledonia", code2: "NC", code3: "NCL", numeric: "540" } - - { id: 158, name: "New Zealand", code2: "NZ", code3: "NZL", numeric: "554" } - - { id: 159, name: "Nicaragua", code2: "NI", code3: "NIC", numeric: "558" } - - { id: 160, name: "Niger (the)", code2: "NE", code3: "NER", numeric: "562" } - - { id: 161, name: "Nigeria", code2: "NG", code3: "NGA", numeric: "566" } - - { id: 162, name: "Niue", code2: "NU", code3: "NIU", numeric: "570" } - - { id: 163, name: "Norfolk Island", code2: "NF", code3: "NFK", numeric: "574" } - - { id: 164, name: "North Macedonia", code2: "MK", code3: "MKD", numeric: "807" } - - { id: 165, name: "Northern Mariana Islands (the)", code2: "MP", code3: "MNP", numeric: "580" } - - { id: 166, name: "Norway", code2: "NO", code3: "NOR", numeric: "578" } - - { id: 167, name: "Oman", code2: "OM", code3: "OMN", numeric: "512" } - - { id: 168, name: "Pakistan", code2: "PK", code3: "PAK", numeric: "586" } - - { id: 169, name: "Palau", code2: "PW", code3: "PLW", numeric: "585" } - - { id: 170, name: "Palestine, State of", code2: "PS", code3: "PSE", numeric: "275" } - - { id: 171, name: "Panama", code2: "PA", code3: "PAN", numeric: "591" } - - { id: 172, name: "Papua New Guinea", code2: "PG", code3: "PNG", numeric: "598" } - - { id: 173, name: "Paraguay", code2: "PY", code3: "PRY", numeric: "600" } - - { id: 174, name: "Peru", code2: "PE", code3: "PER", numeric: "604" } - - { id: 175, name: "Philippines (the)", code2: "PH", code3: "PHL", numeric: "608" } - - { id: 176, name: "Pitcairn", code2: "PN", code3: "PCN", numeric: "612" } - - { id: 177, name: "Poland", code2: "PL", code3: "POL", numeric: "616" } - - { id: 178, name: "Portugal", code2: "PT", code3: "PRT", numeric: "620" } - - { id: 179, name: "Puerto Rico", code2: "PR", code3: "PRI", numeric: "630" } - - { id: 180, name: "Qatar", code2: "QA", code3: "QAT", numeric: "634" } - - { id: 181, name: "Romania", code2: "RO", code3: "ROU", numeric: "642" } - - { id: 182, name: "Russian Federation (the)", code2: "RU", code3: "RUS", numeric: "643" } - - { id: 183, name: "Rwanda", code2: "RW", code3: "RWA", numeric: "646" } - - { id: 184, name: "Réunion", code2: "RE", code3: "REU", numeric: "638" } - - { id: 185, name: "Saint Barthélemy", code2: "BL", code3: "BLM", numeric: "652" } - - { id: 186, name: "Saint Helena, Ascension and Tristan da Cunha", code2: "SH", code3: "SHN", numeric: "654" } - - { id: 187, name: "Saint Kitts and Nevis", code2: "KN", code3: "KNA", numeric: "659" } - - { id: 188, name: "Saint Lucia", code2: "LC", code3: "LCA", numeric: "662" } - - { id: 189, name: "Saint Martin (French part)", code2: "MF", code3: "MAF", numeric: "663" } - - { id: 190, name: "Saint Pierre and Miquelon", code2: "PM", code3: "SPM", numeric: "666" } - - { id: 191, name: "Saint Vincent and the Grenadines", code2: "VC", code3: "VCT", numeric: "670" } - - { id: 192, name: "Samoa", code2: "WS", code3: "WSM", numeric: "882" } - - { id: 193, name: "San Marino", code2: "SM", code3: "SMR", numeric: "674" } - - { id: 194, name: "Sao Tome and Principe", code2: "ST", code3: "STP", numeric: "678" } - - { id: 195, name: "Saudi Arabia", code2: "SA", code3: "SAU", numeric: "682" } - - { id: 196, name: "Senegal", code2: "SN", code3: "SEN", numeric: "686" } - - { id: 197, name: "Serbia", code2: "RS", code3: "SRB", numeric: "688" } - - { id: 198, name: "Seychelles", code2: "SC", code3: "SYC", numeric: "690" } - - { id: 199, name: "Sierra Leone", code2: "SL", code3: "SLE", numeric: "694" } - - { id: 200, name: "Singapore", code2: "SG", code3: "SGP", numeric: "702" } - - { id: 201, name: "Sint Maarten (Dutch part)", code2: "SX", code3: "SXM", numeric: "534" } - - { id: 202, name: "Slovakia", code2: "SK", code3: "SVK", numeric: "703" } - - { id: 203, name: "Slovenia", code2: "SI", code3: "SVN", numeric: "705" } - - { id: 204, name: "Solomon Islands", code2: "SB", code3: "SLB", numeric: "090" } - - { id: 205, name: "Somalia", code2: "SO", code3: "SOM", numeric: "706" } - - { id: 206, name: "South Africa", code2: "ZA", code3: "ZAF", numeric: "710" } - - { id: 207, name: "South Georgia and the South Sandwich Islands", code2: "GS", code3: "SGS", numeric: "239" } - - { id: 208, name: "South Sudan", code2: "SS", code3: "SSD", numeric: "728" } - - { id: 209, name: "Spain", code2: "ES", code3: "ESP", numeric: "724" } - - { id: 210, name: "Sri Lanka", code2: "LK", code3: "LKA", numeric: "144" } - - { id: 211, name: "Sudan (the)", code2: "SD", code3: "SDN", numeric: "729" } - - { id: 212, name: "Suriname", code2: "SR", code3: "SUR", numeric: "740" } - - { id: 213, name: "Svalbard and Jan Mayen", code2: "SJ", code3: "SJM", numeric: "744" } - - { id: 214, name: "Sweden", code2: "SE", code3: "SWE", numeric: "752" } - - { id: 215, name: "Switzerland", code2: "CH", code3: "CHE", numeric: "756" } - - { id: 216, name: "Syrian Arab Republic (the)", code2: "SY", code3: "SYR", numeric: "760" } - - { id: 217, name: "Taiwan (Province of China)", code2: "TW", code3: "TWN", numeric: "158" } - - { id: 218, name: "Tajikistan", code2: "TJ", code3: "TJK", numeric: "762" } - - { id: 219, name: "Tanzania, the United Republic of", code2: "TZ", code3: "TZA", numeric: "834" } - - { id: 220, name: "Thailand", code2: "TH", code3: "THA", numeric: "764" } - - { id: 221, name: "Timor-Leste", code2: "TL", code3: "TLS", numeric: "626" } - - { id: 222, name: "Togo", code2: "TG", code3: "TGO", numeric: "768" } - - { id: 223, name: "Tokelau", code2: "TK", code3: "TKL", numeric: "772" } - - { id: 224, name: "Tonga", code2: "TO", code3: "TON", numeric: "776" } - - { id: 225, name: "Trinidad and Tobago", code2: "TT", code3: "TTO", numeric: "780" } - - { id: 226, name: "Tunisia", code2: "TN", code3: "TUN", numeric: "788" } - - { id: 227, name: "Turkey", code2: "TR", code3: "TUR", numeric: "792" } - - { id: 228, name: "Turkmenistan", code2: "TM", code3: "TKM", numeric: "795" } - - { id: 229, name: "Turks and Caicos Islands (the)", code2: "TC", code3: "TCA", numeric: "796" } - - { id: 230, name: "Tuvalu", code2: "TV", code3: "TUV", numeric: "798" } - - { id: 231, name: "Uganda", code2: "UG", code3: "UGA", numeric: "800" } - - { id: 232, name: "Ukraine", code2: "UA", code3: "UKR", numeric: "804" } - - { id: 233, name: "United Arab Emirates (the)", code2: "AE", code3: "ARE", numeric: "784" } - - { id: 234, name: "United Kingdom of Great Britain and Northern Ireland (the)", code2: "GB", code3: "GBR", numeric: "826" } - - { id: 235, name: "United States Minor Outlying Islands (the)", code2: "UM", code3: "UMI", numeric: "581" } - - { id: 236, name: "United States of America (the)", code2: "US", code3: "USA", numeric: "840" } - - { id: 237, name: "Uruguay", code2: "UY", code3: "URY", numeric: "858" } - - { id: 238, name: "Uzbekistan", code2: "UZ", code3: "UZB", numeric: "860" } - - { id: 239, name: "Vanuatu", code2: "VU", code3: "VUT", numeric: "548" } - - { id: 240, name: "Venezuela (Bolivarian Republic of)", code2: "VE", code3: "VEN", numeric: "862" } - - { id: 241, name: "Viet Nam", code2: "VN", code3: "VNM", numeric: "704" } - - { id: 242, name: "Virgin Islands (British)", code2: "VG", code3: "VGB", numeric: "092" } - - { id: 243, name: "Virgin Islands (U.S.)", code2: "VI", code3: "VIR", numeric: "850" } - - { id: 244, name: "Wallis and Futuna", code2: "WF", code3: "WLF", numeric: "876" } - - { id: 245, name: "Western Sahara*", code2: "EH", code3: "ESH", numeric: "732" } - - { id: 246, name: "Yemen", code2: "YE", code3: "YEM", numeric: "887" } - - { id: 247, name: "Zambia", code2: "ZM", code3: "ZMB", numeric: "894" } - - { id: 248, name: "Zimbabwe", code2: "ZW", code3: "ZWE", numeric: "716" } - - { id: 249, name: "Åland Islands", code2: "AX", code3: "ALA", numeric: "248" } + file: data/countries.csv - name: cities entity: City diff --git a/countries/data/countries.csv b/countries/data/countries.csv new file mode 100644 index 0000000..7fdfc4b --- /dev/null +++ b/countries/data/countries.csv @@ -0,0 +1,250 @@ +COUNTRY_ID,COUNTRY_NAME,COUNTRY_CODE2,COUNTRY_CODE3,COUNTRY_NUMERIC +1,Afghanistan,AF,AFG,004 +2,Albania,AL,ALB,008 +3,Algeria,DZ,DZA,012 +4,American Samoa,AS,ASM,016 +5,Andorra,AD,AND,020 +6,Angola,AO,AGO,024 +7,Anguilla,AI,AIA,660 +8,Antarctica,AQ,ATA,010 +9,Antigua and Barbuda,AG,ATG,028 +10,Argentina,AR,ARG,032 +11,Armenia,AM,ARM,051 +12,Aruba,AW,ABW,533 +13,Australia,AU,AUS,036 +14,Austria,AT,AUT,040 +15,Azerbaijan,AZ,AZE,031 +16,Bahamas (the),BS,BHS,044 +17,Bahrain,BH,BHR,048 +18,Bangladesh,BD,BGD,050 +19,Barbados,BB,BRB,052 +20,Belarus,BY,BLR,112 +21,Belgium,BE,BEL,056 +22,Belize,BZ,BLZ,084 +23,Benin,BJ,BEN,204 +24,Bermuda,BM,BMU,060 +25,Bhutan,BT,BTN,064 +26,Bolivia (Plurinational State of),BO,BOL,068 +27,"Bonaire, Sint Eustatius and Saba",BQ,BES,535 +28,Bosnia and Herzegovina,BA,BIH,070 +29,Botswana,BW,BWA,072 +30,Bouvet Island,BV,BVT,074 +31,Brazil,BR,BRA,076 +32,British Indian Ocean Territory (the),IO,IOT,086 +33,Brunei Darussalam,BN,BRN,096 +34,Bulgaria,BG,BGR,100 +35,Burkina Faso,BF,BFA,854 +36,Burundi,BI,BDI,108 +37,Cabo Verde,CV,CPV,132 +38,Cambodia,KH,KHM,116 +39,Cameroon,CM,CMR,120 +40,Canada,CA,CAN,124 +41,Cayman Islands (the),KY,CYM,136 +42,Central African Republic (the),CF,CAF,140 +43,Chad,TD,TCD,148 +44,Chile,CL,CHL,152 +45,China,CN,CHN,156 +46,Christmas Island,CX,CXR,162 +47,Cocos (Keeling) Islands (the),CC,CCK,166 +48,Colombia,CO,COL,170 +49,Comoros (the),KM,COM,174 +50,Congo (the Democratic Republic of the),CD,COD,180 +51,Congo (the),CG,COG,178 +52,Cook Islands (the),CK,COK,184 +53,Costa Rica,CR,CRI,188 +54,Croatia,HR,HRV,191 +55,Cuba,CU,CUB,192 +56,Curaçao,CW,CUW,531 +57,Cyprus,CY,CYP,196 +58,Czechia,CZ,CZE,203 +59,Côte d'Ivoire,CI,CIV,384 +60,Denmark,DK,DNK,208 +61,Djibouti,DJ,DJI,262 +62,Dominica,DM,DMA,212 +63,Dominican Republic (the),DO,DOM,214 +64,Ecuador,EC,ECU,218 +65,Egypt,EG,EGY,818 +66,El Salvador,SV,SLV,222 +67,Equatorial Guinea,GQ,GNQ,226 +68,Eritrea,ER,ERI,232 +69,Estonia,EE,EST,233 +70,Eswatini,SZ,SWZ,748 +71,Ethiopia,ET,ETH,231 +72,Falkland Islands (the) [Malvinas],FK,FLK,238 +73,Faroe Islands (the),FO,FRO,234 +74,Fiji,FJ,FJI,242 +75,Finland,FI,FIN,246 +76,France,FR,FRA,250 +77,French Guiana,GF,GUF,254 +78,French Polynesia,PF,PYF,258 +79,French Southern Territories (the),TF,ATF,260 +80,Gabon,GA,GAB,266 +81,Gambia (the),GM,GMB,270 +82,Georgia,GE,GEO,268 +83,Germany,DE,DEU,276 +84,Ghana,GH,GHA,288 +85,Gibraltar,GI,GIB,292 +86,Greece,GR,GRC,300 +87,Greenland,GL,GRL,304 +88,Grenada,GD,GRD,308 +89,Guadeloupe,GP,GLP,312 +90,Guam,GU,GUM,316 +91,Guatemala,GT,GTM,320 +92,Guernsey,GG,GGY,831 +93,Guinea,GN,GIN,324 +94,Guinea-Bissau,GW,GNB,624 +95,Guyana,GY,GUY,328 +96,Haiti,HT,HTI,332 +97,Heard Island and McDonald Islands,HM,HMD,334 +98,Holy See (the),VA,VAT,336 +99,Honduras,HN,HND,340 +100,Hong Kong,HK,HKG,344 +101,Hungary,HU,HUN,348 +102,Iceland,IS,ISL,352 +103,India,IN,IND,356 +104,Indonesia,ID,IDN,360 +105,Iran (Islamic Republic of),IR,IRN,364 +106,Iraq,IQ,IRQ,368 +107,Ireland,IE,IRL,372 +108,Isle of Man,IM,IMN,833 +109,Israel,IL,ISR,376 +110,Italy,IT,ITA,380 +111,Jamaica,JM,JAM,388 +112,Japan,JP,JPN,392 +113,Jersey,JE,JEY,832 +114,Jordan,JO,JOR,400 +115,Kazakhstan,KZ,KAZ,398 +116,Kenya,KE,KEN,404 +117,Kiribati,KI,KIR,296 +118,Korea (the Democratic People's Republic of),KP,PRK,408 +119,Korea (the Republic of),KR,KOR,410 +120,Kuwait,KW,KWT,414 +121,Kyrgyzstan,KG,KGZ,417 +122,Lao People's Democratic Republic (the),LA,LAO,418 +123,Latvia,LV,LVA,428 +124,Lebanon,LB,LBN,422 +125,Lesotho,LS,LSO,426 +126,Liberia,LR,LBR,430 +127,Libya,LY,LBY,434 +128,Liechtenstein,LI,LIE,438 +129,Lithuania,LT,LTU,440 +130,Luxembourg,LU,LUX,442 +131,Macao,MO,MAC,446 +132,Madagascar,MG,MDG,450 +133,Malawi,MW,MWI,454 +134,Malaysia,MY,MYS,458 +135,Maldives,MV,MDV,462 +136,Mali,ML,MLI,466 +137,Malta,MT,MLT,470 +138,Marshall Islands (the),MH,MHL,584 +139,Martinique,MQ,MTQ,474 +140,Mauritania,MR,MRT,478 +141,Mauritius,MU,MUS,480 +142,Mayotte,YT,MYT,175 +143,Mexico,MX,MEX,484 +144,Micronesia (Federated States of),FM,FSM,583 +145,Moldova (the Republic of),MD,MDA,498 +146,Monaco,MC,MCO,492 +147,Mongolia,MN,MNG,496 +148,Montenegro,ME,MNE,499 +149,Montserrat,MS,MSR,500 +150,Morocco,MA,MAR,504 +151,Mozambique,MZ,MOZ,508 +152,Myanmar,MM,MMR,104 +153,Namibia,NA,NAM,516 +154,Nauru,NR,NRU,520 +155,Nepal,NP,NPL,524 +156,Netherlands (the),NL,NLD,528 +157,New Caledonia,NC,NCL,540 +158,New Zealand,NZ,NZL,554 +159,Nicaragua,NI,NIC,558 +160,Niger (the),NE,NER,562 +161,Nigeria,NG,NGA,566 +162,Niue,NU,NIU,570 +163,Norfolk Island,NF,NFK,574 +164,North Macedonia,MK,MKD,807 +165,Northern Mariana Islands (the),MP,MNP,580 +166,Norway,NO,NOR,578 +167,Oman,OM,OMN,512 +168,Pakistan,PK,PAK,586 +169,Palau,PW,PLW,585 +170,"Palestine, State of",PS,PSE,275 +171,Panama,PA,PAN,591 +172,Papua New Guinea,PG,PNG,598 +173,Paraguay,PY,PRY,600 +174,Peru,PE,PER,604 +175,Philippines (the),PH,PHL,608 +176,Pitcairn,PN,PCN,612 +177,Poland,PL,POL,616 +178,Portugal,PT,PRT,620 +179,Puerto Rico,PR,PRI,630 +180,Qatar,QA,QAT,634 +181,Romania,RO,ROU,642 +182,Russian Federation (the),RU,RUS,643 +183,Rwanda,RW,RWA,646 +184,Réunion,RE,REU,638 +185,Saint Barthélemy,BL,BLM,652 +186,"Saint Helena, Ascension and Tristan da Cunha",SH,SHN,654 +187,Saint Kitts and Nevis,KN,KNA,659 +188,Saint Lucia,LC,LCA,662 +189,Saint Martin (French part),MF,MAF,663 +190,Saint Pierre and Miquelon,PM,SPM,666 +191,Saint Vincent and the Grenadines,VC,VCT,670 +192,Samoa,WS,WSM,882 +193,San Marino,SM,SMR,674 +194,Sao Tome and Principe,ST,STP,678 +195,Saudi Arabia,SA,SAU,682 +196,Senegal,SN,SEN,686 +197,Serbia,RS,SRB,688 +198,Seychelles,SC,SYC,690 +199,Sierra Leone,SL,SLE,694 +200,Singapore,SG,SGP,702 +201,Sint Maarten (Dutch part),SX,SXM,534 +202,Slovakia,SK,SVK,703 +203,Slovenia,SI,SVN,705 +204,Solomon Islands,SB,SLB,090 +205,Somalia,SO,SOM,706 +206,South Africa,ZA,ZAF,710 +207,South Georgia and the South Sandwich Islands,GS,SGS,239 +208,South Sudan,SS,SSD,728 +209,Spain,ES,ESP,724 +210,Sri Lanka,LK,LKA,144 +211,Sudan (the),SD,SDN,729 +212,Suriname,SR,SUR,740 +213,Svalbard and Jan Mayen,SJ,SJM,744 +214,Sweden,SE,SWE,752 +215,Switzerland,CH,CHE,756 +216,Syrian Arab Republic (the),SY,SYR,760 +217,Taiwan (Province of China),TW,TWN,158 +218,Tajikistan,TJ,TJK,762 +219,"Tanzania, the United Republic of",TZ,TZA,834 +220,Thailand,TH,THA,764 +221,Timor-Leste,TL,TLS,626 +222,Togo,TG,TGO,768 +223,Tokelau,TK,TKL,772 +224,Tonga,TO,TON,776 +225,Trinidad and Tobago,TT,TTO,780 +226,Tunisia,TN,TUN,788 +227,Turkey,TR,TUR,792 +228,Turkmenistan,TM,TKM,795 +229,Turks and Caicos Islands (the),TC,TCA,796 +230,Tuvalu,TV,TUV,798 +231,Uganda,UG,UGA,800 +232,Ukraine,UA,UKR,804 +233,United Arab Emirates (the),AE,ARE,784 +234,United Kingdom of Great Britain and Northern Ireland (the),GB,GBR,826 +235,United States Minor Outlying Islands (the),UM,UMI,581 +236,United States of America (the),US,USA,840 +237,Uruguay,UY,URY,858 +238,Uzbekistan,UZ,UZB,860 +239,Vanuatu,VU,VUT,548 +240,Venezuela (Bolivarian Republic of),VE,VEN,862 +241,Viet Nam,VN,VNM,704 +242,Virgin Islands (British),VG,VGB,092 +243,Virgin Islands (U.S.),VI,VIR,850 +244,Wallis and Futuna,WF,WLF,876 +245,Western Sahara*,EH,ESH,732 +246,Yemen,YE,YEM,887 +247,Zambia,ZM,ZMB,894 +248,Zimbabwe,ZW,ZWE,716 +249,Åland Islands,AX,ALA,248 diff --git a/uoms/uoms.intent b/uoms/uoms.intent index dc11a19..ffb0bea 100644 --- a/uoms/uoms.intent +++ b/uoms/uoms.intent @@ -1,10 +1,16 @@ name: uoms description: Units of measure icon: ruler +# Data languages the app offers: the shell's Region & Language setting lists them; the chosen one +# is sent as Accept-Language and the multilingual entities below translate by it. +languages: [en, bg] entities: - name: UoM kind: setting icon: ruler + # UoM names carry per-language values in UOMS_UOM_LANG (generated by the schema layer); every + # read overlays the caller's language. Translations are the uoms-bg seed below. + multilingual: true fields: - { name: id, type: integer, primaryKey: true, generated: true } - { name: name, type: string, required: true, length: 100 } @@ -48,3 +54,30 @@ seeds: - { id: 25, name: Watt, iso: WTT, sap: W, numerator: 1, denominator: 1, rounding: 0, base: true } - { id: 26, name: Kilowatt, iso: KWT, sap: KW, numerator: 1000, denominator: 1, rounding: 0, base: false } - { id: 27, name: Kelvin, iso: KEL, sap: K, numerator: 1, denominator: 1, rounding: 0, base: true } + + # Bulgarian names for the frequently used units - land in UOMS_UOM_LANG. Unreferenced units keep + # their base (English) names: the overlay merges only the rows present for the language. + - name: uoms-bg + entity: UoM + language: bg + rows: + - { id: 1, name: "Брой" } + - { id: 2, name: "Парчета" } + - { id: 3, name: "Чифт" } + - { id: 4, name: "Дузина" } + - { id: 5, name: "Пакет" } + - { id: 6, name: "Палет" } + - { id: 7, name: "Грам" } + - { id: 8, name: "Килограм" } + - { id: 9, name: "Милиграм" } + - { id: 10, name: "Тон" } + - { id: 11, name: "Метър" } + - { id: 12, name: "Сантиметър" } + - { id: 13, name: "Милиметър" } + - { id: 14, name: "Километър" } + - { id: 19, name: "Литър" } + - { id: 20, name: "Милилитър" } + - { id: 21, name: "Секунда" } + - { id: 22, name: "Минута" } + - { id: 23, name: "Час" } + - { id: 24, name: "Ден" }