Funnelish Plus: Translate Countries List into French

By default, Funnelish Plus displays the list of countries in English only, the following code can be used to upload a full list of countries into a Funnelish Plus page.

PS. You may re-sort the countries, putting those more likely to be used at the top of the list, instead of the default alphabetical order.

    let frCountries = {
  "AF": "Afghanistan",
  "ZA": "Afrique du Sud",
  "AL": "Albanie",
  "DZ": "Algérie",
  "DE": "Allemagne",
  "AD": "Andorre",
  "AO": "Angola",
  "AI": "Anguilla",
  "AQ": "Antarctique",
  "AG": "Antigua-et-Barbuda",
  "AN": "Antilles néerlandaises",
  "SA": "Arabie saoudite",
  "AR": "Argentine",
  "AM": "Arménie",
  "AW": "Aruba",
  "AU": "Australie",
  "AT": "Autriche",
  "AZ": "Azerbaïdjan",
  "BS": "Bahamas",
  "BH": "Bahreïn",
  "BD": "Bangladesh",
  "BB": "Barbade",
  "BY": "Bélarus",
  "BE": "Belgique",
  "BZ": "Belize",
  "BJ": "Bénin",
  "BM": "Bermudes",
  "BT": "Bhoutan",
  "BO": "Bolivie",
  "BA": "Bosnie-Herzégovine",
  "BW": "Botswana",
  "BR": "Brésil",
  "BN": "Brunéi Darussalam",
  "BG": "Bulgarie",
  "BF": "Burkina Faso",
  "BI": "Burundi",
  "KH": "Cambodge",
  "CM": "Cameroun",
  "CA": "Canada",
  "CV": "Cap-Vert",
  "EA": "Ceuta et Melilla",
  "CL": "Chili",
  "CN": "Chine",
  "CY": "Chypre",
  "CO": "Colombie",
  "KM": "Comores",
  "CG": "Congo-Brazzaville",
  "KP": "Corée du Nord",
  "KR": "Corée du Sud",
  "CR": "Costa Rica",
  "CI": "Côte d’Ivoire",
  "HR": "Croatie",
  "CU": "Cuba",
  "DK": "Danemark",
  "DG": "Diego Garcia",
  "DJ": "Djibouti",
  "DM": "Dominique",
  "EG": "Égypte",
  "SV": "El Salvador",
  "AE": "Émirats arabes unis",
  "EC": "Équateur",
  "ER": "Érythrée",
  "ES": "Espagne",
  "EE": "Estonie",
  "VA": "État de la Cité du Vatican",
  "FM": "États fédérés de Micronésie",
  "US": "États-Unis",
  "ET": "Éthiopie",
  "FJ": "Fidji",
  "FI": "Finlande",
  "FR": "France",
  "GA": "Gabon",
  "GM": "Gambie",
  "GE": "Géorgie",
  "GS": "Géorgie du Sud et les îles Sandwich du Sud",
  "GH": "Ghana",
  "GI": "Gibraltar",
  "GR": "Grèce",
  "GD": "Grenade",
  "GL": "Groenland",
  "GP": "Guadeloupe",
  "GU": "Guam",
  "GT": "Guatemala",
  "GG": "Guernesey",
  "GN": "Guinée",
  "GQ": "Guinée équatoriale",
  "GW": "Guinée-Bissau",
  "GY": "Guyana",
  "GF": "Guyane française",
  "HT": "Haïti",
  "HN": "Honduras",
  "HU": "Hongrie",
  "BV": "Île Bouvet",
  "CX": "Île Christmas",
  "CP": "Île Clipperton",
  "AC": "Île de l'Ascension",
  "IM": "Île de Man",
  "NF": "Île Norfolk",
  "AX": "Îles Åland",
  "KY": "Îles Caïmans",
  "IC": "Îles Canaries",
  "CC": "Îles Cocos - Keeling",
  "CK": "Îles Cook",
  "FO": "Îles Féroé",
  "HM": "Îles Heard et MacDonald",
  "FK": "Îles Malouines",
  "MP": "Îles Mariannes du Nord",
  "MH": "Îles Marshall",
  "UM": "Îles Mineures Éloignées des États-Unis",
  "SB": "Îles Salomon",
  "TC": "Îles Turks et Caïques",
  "VG": "Îles Vierges britanniques",
  "VI": "Îles Vierges des États-Unis",
  "IN": "Inde",
  "ID": "Indonésie",
  "IQ": "Irak",
  "IR": "Iran",
  "IE": "Irlande",
  "IS": "Islande",
  "IL": "Israël",
  "IT": "Italie",
  "JM": "Jamaïque",
  "JP": "Japon",
  "JE": "Jersey",
  "JO": "Jordanie",
  "KZ": "Kazakhstan",
  "KE": "Kenya",
  "KG": "Kirghizistan",
  "KI": "Kiribati",
  "KW": "Koweït",
  "LA": "Laos",
  "LS": "Lesotho",
  "LV": "Lettonie",
  "LB": "Liban",
  "LR": "Libéria",
  "LY": "Libye",
  "LI": "Liechtenstein",
  "LT": "Lituanie",
  "LU": "Luxembourg",
  "MK": "Macédoine",
  "MG": "Madagascar",
  "MY": "Malaisie",
  "MW": "Malawi",
  "MV": "Maldives",
  "ML": "Mali",
  "MT": "Malte",
  "MA": "Maroc",
  "MQ": "Martinique",
  "MU": "Maurice",
  "MR": "Mauritanie",
  "YT": "Mayotte",
  "MX": "Mexique",
  "MD": "Moldavie",
  "MC": "Monaco",
  "MN": "Mongolie",
  "ME": "Monténégro",
  "MS": "Montserrat",
  "MZ": "Mozambique",
  "MM": "Myanmar",
  "NA": "Namibie",
  "NR": "Nauru",
  "NP": "Népal",
  "NI": "Nicaragua",
  "NE": "Niger",
  "NG": "Nigéria",
  "NU": "Niue",
  "NO": "Norvège",
  "NC": "Nouvelle-Calédonie",
  "NZ": "Nouvelle-Zélande",
  "OM": "Oman",
  "UG": "Ouganda",
  "UZ": "Ouzbékistan",
  "PK": "Pakistan",
  "PW": "Palaos",
  "PA": "Panama",
  "PG": "Papouasie-Nouvelle-Guinée",
  "PY": "Paraguay",
  "NL": "Pays-Bas",
  "PE": "Pérou",
  "PH": "Philippines",
  "PN": "Pitcairn",
  "PL": "Pologne",
  "PF": "Polynésie française",
  "PR": "Porto Rico",
  "PT": "Portugal",
  "QA": "Qatar",
  "HK": "R.A.S. chinoise de Hong Kong",
  "MO": "R.A.S. chinoise de Macao",
  "QO": "régions éloignées de l’Océanie",
  "CF": "République centrafricaine",
  "CD": "République démocratique du Congo",
  "DO": "République dominicaine",
  "CZ": "République tchèque",
  "RE": "Réunion",
  "RO": "Roumanie",
  "GB": "Royaume-Uni",
  "RU": "Russie",
  "RW": "Rwanda",
  "EH": "Sahara occidental",
  "BL": "Saint-Barthélémy",
  "KN": "Saint-Kitts-et-Nevis",
  "SM": "Saint-Marin",
  "MF": "Saint-Martin",
  "PM": "Saint-Pierre-et-Miquelon",
  "VC": "Saint-Vincent-et-les Grenadines",
  "SH": "Sainte-Hélène",
  "LC": "Sainte-Lucie",
  "WS": "Samoa",
  "AS": "Samoa américaines",
  "ST": "Sao Tomé-et-Principe",
  "SN": "Sénégal",
  "RS": "Serbie",
  "CS": "Serbie-et-Monténégro",
  "SC": "Seychelles",
  "SL": "Sierra Leone",
  "SG": "Singapour",
  "SK": "Slovaquie",
  "SI": "Slovénie",
  "SO": "Somalie",
  "SD": "Soudan",
  "LK": "Sri Lanka",
  "SE": "Suède",
  "CH": "Suisse",
  "SR": "Suriname",
  "SJ": "Svalbard et Île Jan Mayen",
  "SZ": "Swaziland",
  "SY": "Syrie",
  "TJ": "Tadjikistan",
  "TW": "Taïwan",
  "TZ": "Tanzanie",
  "TD": "Tchad",
  "TF": "Terres australes françaises",
  "IO": "Territoire britannique de l'océan Indien",
  "PS": "Territoire palestinien",
  "TH": "Thaïlande",
  "TL": "Timor oriental",
  "TG": "Togo",
  "TK": "Tokelau",
  "TO": "Tonga",
  "TT": "Trinité-et-Tobago",
  "TA": "Tristan da Cunha",
  "TN": "Tunisie",
  "TM": "Turkménistan",
  "TR": "Turquie",
  "TV": "Tuvalu",
  "UA": "Ukraine",
  "EU": "Union européenne",
  "UY": "Uruguay",
  "VU": "Vanuatu",
  "VE": "Venezuela",
  "VN": "Viêt Nam",
  "WF": "Wallis-et-Futuna",
  "YE": "Yémen",
  "ZM": "Zambie",
  "ZW": "Zimbabwe"
};

window.addEventListener('load', function () {
document.querySelectorAll('select[name="shipping_country"],select[name="country"]').forEach(s => {
 s.innerHTML = '';
 Object.keys(frCountries).forEach(c => {
   let o = document.createElement('option');
   o.value = c;
   o.innerText = frCountries[c];
   s.appendChild(o);
 });
});
});

How to use the French countries translation code above?

  1. Copy the code above as it-is (you can alter the countries list).

  2. Edit your Page in a Funnelish Funnel.

  3. Past the code into Code Editor > Custom JS (body):

  4. Save changes, and that’s it.

1 Like