Skip to content

Commit

Permalink
Merge pull request #348 from jwplayer/feat/crf-translatable-lists
Browse files Browse the repository at this point in the history
Custom register fields: Implement translation for Country and US State lists
  • Loading branch information
mirovladimitrovski authored Jul 31, 2023
2 parents 27b0154 + f04af0e commit a5040a9
Show file tree
Hide file tree
Showing 10 changed files with 938 additions and 393 deletions.
21 changes: 10 additions & 11 deletions src/static/json/countries.json → public/locales/en/country.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"bj": "Benin",
"bm": "Bermuda",
"bt": "Bhutan",
"bo": "Bolivia, Plurinational State of",
"bo": "Bolivia",
"bq": "Bonaire, Sint Eustatius and Saba",
"ba": "Bosnia and Herzegovina",
"bw": "Botswana",
Expand All @@ -39,7 +39,7 @@
"kh": "Cambodia",
"cm": "Cameroon",
"ca": "Canada",
"cv": "Cape Verde",
"cv": "Cabo Verde",
"ky": "Cayman Islands",
"cf": "Central African Republic",
"td": "Chad",
Expand All @@ -50,10 +50,10 @@
"co": "Colombia",
"km": "Comoros",
"cg": "Congo",
"cd": "Congo, the Democratic Republic of the",
"cd": "Congo, The Democratic Republic of the",
"ck": "Cook Islands",
"cr": "Costa Rica",
"ci": "Côte d'Ivoire",
"ci": "Cote D'Ivoire",
"hr": "Croatia",
"cu": "Cuba",
"cw": "Curaçao",
Expand Down Expand Up @@ -103,7 +103,7 @@
"is": "Iceland",
"in": "India",
"id": "Indonesia",
"ir": "Iran, Islamic Republic of",
"ir": "Iran, Islamic Republic Of",
"iq": "Iraq",
"ie": "Ireland",
"im": "Isle of Man",
Expand All @@ -130,7 +130,7 @@
"lt": "Lithuania",
"lu": "Luxembourg",
"mo": "Macao",
"mk": "Macedonia",
"mk": "Macedonia, The Former Yugoslav Republic of",
"mg": "Madagascar",
"mw": "Malawi",
"my": "Malaysia",
Expand Down Expand Up @@ -206,17 +206,16 @@
"so": "Somalia",
"za": "South Africa",
"gs": "South Georgia and the South Sandwich Islands",
"ss": "South Sudan",
"es": "Spain",
"lk": "Sri Lanka",
"sd": "Sudan",
"sr": "SuridisplayName",
"sr": "Suriname",
"sj": "Svalbard and Jan Mayen",
"sz": "Swaziland",
"se": "Sweden",
"ch": "Switzerland",
"sy": "Syrian Arab Republic",
"tw": "Taiwan, Province of China",
"tw": "Taiwan",
"tj": "Tajikistan",
"tz": "Tanzania, United Republic of",
"th": "Thailand",
Expand All @@ -234,12 +233,12 @@
"ua": "Ukraine",
"ae": "United Arab Emirates",
"gb": "United Kingdom",
"us": "United States",
"us": "United States of America",
"um": "United States Minor Outlying Islands",
"uy": "Uruguay",
"uz": "Uzbekistan",
"vu": "Vanuatu",
"ve": "Venezuela, Bolivarian Republic of",
"ve": "Venezuela",
"vn": "Viet Nam",
"vg": "Virgin Islands, British",
"vi": "Virgin Islands, U.S.",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
{
"al": "Alabama",
"ak": "Alaska",
"as": "American Samoa",
"az": "Arizona",
"ar": "Arkansas",
"ca": "California",
"co": "Colorado",
"ct": "Connecticut",
"de": "Delaware",
"dc": "District Of Columbia",
"fm": "Federated States Of Micronesia",
"dc": "District of Columbia",
"fl": "Florida",
"ga": "Georgia",
"gu": "Guam",
"hi": "Hawaii",
"id": "Idaho",
"il": "Illinois",
Expand All @@ -22,7 +19,6 @@
"ky": "Kentucky",
"la": "Louisiana",
"me": "Maine",
"mh": "Marshall Islands",
"md": "Maryland",
"ma": "Massachusetts",
"mi": "Michigan",
Expand All @@ -38,21 +34,17 @@
"ny": "New York",
"nc": "North Carolina",
"nd": "North Dakota",
"mp": "Northern Mariana Islands",
"oh": "Ohio",
"ok": "Oklahoma",
"or": "Oregon",
"pw": "Palau",
"pa": "Pennsylvania",
"pr": "Puerto Rico",
"ri": "Rhode Island",
"sc": "South Carolina",
"sd": "South Dakota",
"tn": "Tennessee",
"tx": "Texas",
"ut": "Utah",
"vt": "Vermont",
"vi": "Virgin Islands",
"va": "Virginia",
"wa": "Washington",
"wv": "West Virginia",
Expand Down
250 changes: 250 additions & 0 deletions public/locales/es/country.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
{
"af": "Afganistán",
"ax": "Islas Aland",
"al": "Albania",
"dz": "Argelia",
"as": "Samoa Americana",
"ad": "Andorra",
"ao": "Angola",
"ai": "Anguila",
"aq": "Antártida",
"ag": "Antigua y Barbuda",
"ar": "Argentina",
"am": "Armenia",
"aw": "Aruba",
"au": "Australia",
"at": "Austria",
"az": "Azerbaiyán",
"bs": "Bahamas",
"bh": "Baréin",
"bd": "Bangladesh",
"bb": "Barbados",
"by": "Bielorrusia",
"be": "Bélgica",
"bz": "Belice",
"bj": "Benín",
"bm": "Islas Bermudas",
"bt": "Bután",
"bo": "Bolivia",
"bq": "Caribe Neerlandés",
"ba": "Bosnia y Herzegovina",
"bw": "Botsuana",
"bv": "Isla Bouvet",
"br": "Brasil",
"io": "Territorio Británico del Océano Índico",
"bn": "Brunéi",
"bg": "Bulgaria",
"bf": "Burkina Faso",
"bi": "Burundi",
"kh": "Camboya",
"cm": "Camerún",
"ca": "Canadá",
"cv": "Cabo Verde",
"ky": "Islas Caimán",
"cf": "República Centroafricana",
"td": "Chad",
"cl": "Chile",
"cn": "China",
"cx": "Isla de Navidad",
"cc": "Islas Cocos",
"co": "Colombia",
"km": "Comoras",
"cg": "Congo",
"cd": "Congo, República Democrática del",
"ck": "Islas Cook",
"cr": "Costa Rica",
"ci": "Costa de Marfil",
"hr": "Croacia",
"cu": "Cuba",
"cw": "Curazao",
"cy": "Chipre",
"cz": "Chequia",
"dk": "Dinamarca",
"dj": "Yibuti",
"dm": "Dominica",
"do": "República Dominicana",
"ec": "Ecuador",
"eg": "Egipto",
"sv": "El Salvador",
"gq": "Guinea Ecuatorial",
"er": "Eritrea",
"ee": "Estonia",
"et": "Etiopía",
"fk": "Islas Malvinas",
"fo": "Islas Feroe",
"fj": "Fiyi",
"fi": "Finlandia",
"fr": "Francia",
"gf": "Guayana Francesa",
"pf": "Polinesia Francesa",
"tf": "Territorios Franceses del Sur",
"ga": "Gabón",
"gm": "Gambia",
"ge": "Georgia",
"de": "Alemania",
"gh": "Ghana",
"gi": "Gibraltar",
"gr": "Grecia",
"gl": "Groenlandia",
"gd": "Grenada",
"gp": "Guadalupe",
"gu": "Guam",
"gt": "Guatemala",
"gg": "Guernsey",
"gn": "Guinea",
"gw": "Guinea-Bisáu",
"gy": "Guayana",
"ht": "Haití",
"hm": "Territorio de las Islas Heard y McDonald",
"va": "Santa Sede (Ciudad del Vaticano)",
"hn": "Honduras",
"hk": "Hong Kong",
"hu": "Hungría",
"is": "Islandia",
"in": "India",
"id": "Indonesia",
"ir": "Irán",
"iq": "Irak",
"ie": "Irlanda",
"im": "Isla de Man",
"il": "Israel",
"it": "Italia",
"jm": "Jamaica",
"jp": "Japona",
"je": "Jersey",
"jo": "Jordán",
"kz": "Kazajstán",
"ke": "Kenia",
"ki": "Kiribati",
"kp": "Corea, República Popular Democrática de",
"kr": "Corea, República",
"kw": "Kuwait",
"kg": "Kirguistán",
"la": "Laos",
"lv": "Letonia",
"lb": "Líbano",
"ls": "Lesoto",
"lr": "Liberia",
"ly": "Libia",
"li": "Liechtenstein",
"lt": "Lituania",
"lu": "Luxemburgo",
"mo": "Macao",
"mk": "Macedonia",
"mg": "Madagascar",
"mw": "Malaui",
"my": "Malasia",
"mv": "Maldivas",
"ml": "Malí",
"mt": "Malta",
"mh": "Islas Marshall",
"mq": "Martinica",
"mr": "Mauritania",
"mu": "Mauricio",
"yt": "Mayotte",
"mx": "México",
"fm": "Micronesia",
"md": "Moldavia",
"mc": "Mónaco",
"mn": "Mongolia",
"me": "Montenegro",
"ms": "Montserrat",
"ma": "Marruecos",
"mz": "Mozambique",
"mm": "Birmania",
"na": "Namibia",
"nr": "Nauru",
"np": "Nepal",
"nl": "Países Bajos",
"nc": "Nueva Caledonia",
"nz": "Nueva Zelanda",
"ni": "Nicaragua",
"ne": "Níger",
"ng": "Nigeria",
"nu": "Niue",
"nf": "Isla Norfolk",
"mp": "Islas Marianas del Norte",
"no": "Noruega",
"om": "Omán",
"pk": "Pakistán",
"pw": "Palaos",
"ps": "Palestina, Estado de",
"pa": "Panamá",
"pg": "Papúa Nueva Guinea",
"py": "Paraguay",
"pe": "Perú",
"ph": "Filipinas",
"pn": "Islas Pitcairn",
"pl": "Polonia",
"pt": "Portugal",
"pr": "Puerto Rico",
"qa": "Katar",
"re": "Reunión",
"ro": "Rumania",
"ru": "Rusia",
"rw": "Ruanda",
"bl": "San Bartolomé",
"sh": "Santa Elena, Ascensión y Tristán de Acuña",
"kn": "San Cristóbal y Nieves",
"lc": "Santa Lucía",
"mf": "Isla de San Martín",
"pm": "San Pedro y Miquelón",
"vc": "San Vicente y las Granadinas",
"ws": "Samoa",
"sm": "San Marino",
"st": "Santo Tomé y Príncipe",
"sa": "Arabia Saudita",
"sn": "Senegal",
"rs": "Serbia",
"sc": "Seychelles",
"sl": "Sierra Leone",
"sg": "Singapur",
"sx": "San Martín",
"sk": "Eslovaquia",
"si": "Eslovenia",
"sb": "Islas Salomón",
"so": "Somalia",
"za": "Sudáfrica",
"gs": "Islas Georgias del Sur y Sandwich del Sur",
"es": "España",
"lk": "Sri Lanka",
"sd": "Sudán",
"sr": "Surinam",
"sj": "Svalbard y Jan Mayen",
"sz": "Suazilandia",
"se": "Suecia",
"ch": "Suiza",
"sy": "Siria",
"tw": "Taiwán",
"tj": "Tayikistán",
"tz": "Tanzania",
"th": "Tailandia",
"tl": "Timor Oriental",
"tg": "Togo",
"tk": "Tokelau",
"to": "Tonga",
"tt": "Trinidad y Tobago",
"tn": "Túnez",
"tr": "Turquía",
"tm": "Turkmenistán",
"tc": "Islas Turcas y Caicos",
"tv": "Tuvalu",
"ug": "Uganda",
"ua": "Ucrania",
"ae": "Emiratos Árabes Unidos",
"gb": "Reino Unido",
"us": "Estados Unidos",
"um": "Islas Ultramarinas Menores de los Estados Unidos",
"uy": "Uruguay",
"uz": "Uzbekistán",
"vu": "Vanuatu",
"ve": "Venezuela",
"vn": "Vietnam",
"vg": "Islas Vírgenes Británicas",
"vi": "Islas Vírgenes, Estados Unidos",
"wf": "Wallis y Futuna",
"eh": "Sahara Occidental",
"ye": "Yemen",
"zm": "Zambia",
"zw": "Zimbabue"
}
Loading

0 comments on commit a5040a9

Please sign in to comment.