MediaWiki:Resources/Country2Currency.js
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
<html>
<script type="text/javascript" language="javascript">
/**
* NOTE: The following currency mapping is WMF-specific based on payment
* provider availability, NOT the official currency of the country
*/
function getCurrency(){
switch(Geo.country){
case "AD": return "EUR";
case "AE": return "AED";
case "AF": return "USD";
case "AG": return "XCD";
case "AL": return "EUR";
case "AM": return "EUR";
case "AN": return "ANG";
case "AO": return "USD";
case "AR": return "ARS";
case "AS": return "USD";
case "AT": return "EUR";
case "AU": return "AUD";
case "AW": return "EUR";
case "AZ": return "EUR";
case "BA": return "EUR";
case "BB": return "BBD";
case "BD": return "BDT";
case "BE": return "EUR";
case "BF": return "XOF";
case "BG": return "BGN";
case "BH": return "BHD";
case "BI": return "USD";
case "BJ": return "XOF";
case "BM": return "BMD";
case "BN": return "USD";
case "BO": return "BOB";
case "BR": return "BRL";
case "BS": return "BSD";
case "BW": return "USD";
case "BY": return "EUR";
case "BZ": return "BZD";
case "CA": return "CAD";
case "CF": return "XAF";
case "CG": return "USD";
case "CH": return "CHF";
case "CI": return "EUR";
case "CK": return "NZD";
case "CL": return "CLP";
case "CM": return "XAF";
case "CN": return "CNY";
case "CO": return "COP";
case "CR": return "CRC";
case "CV": return "USD";
case "CY": return "EUR";
case "CZ": return "CZK";
case "DE": return "EUR";
case "DJ": return "USD";
case "DK": return "DKK";
case "DM": return "XCD";
case "DO": return "DOP";
case "DZ": return "DZD";
case "EC": return "USD";
case "EE": return "EUR";
case "EG": return "EGP";
case "ER": return "USD";
case "ES": return "EUR";
case "ET": return "USD";
case "FI": return "EUR";
case "FJ": return "FJD";
case "FM": return "USD";
case "FO": return "DKK";
case "FR": return "EUR";
case "GA": return "XAF";
case "GB": return "GBP";
case "GD": return "XCD";
case "GE": return "USD";
case "GF": return "EUR";
case "GL": return "DKK";
case "GM": return "USD";
case "GQ": return "USD";
case "GR": return "EUR";
case "GT": return "GTQ";
case "GU": return "USD";
case "GW": return "USD";
case "HK": return "HKD";
case "HN": return "HNL";
case "HR": return "HRK";
case "HU": return "HUF";
case "ID": return "IDR";
case "IE": return "EUR";
case "IL": return "ILS";
case "IN": return "INR";
case "IQ": return "USD";
case "IS": return "USD";
case "IT": return "EUR";
case "JM": return "JMD";
case "JO": return "JOD";
case "JP": return "JPY";
case "KE": return "KES";
case "KH": return "USD";
case "KI": return "AUD";
case "KM": return "USD";
case "KN": return "XCD";
case "KP": return "USD";
case "KR": return "KRW";
case "KW": return "USD";
case "KZ": return "KZT";
case "LB": return "LBP";
case "LC": return "XCD";
case "LI": return "CHF";
case "LK": return "LKR";
case "LR": return "USD";
case "LT": return "LTL";
case "LU": return "EUR";
case "LV": return "LVL";
case "LY": return "EUR";
case "MA": return "MAD";
case "MC": return "EUR";
case "MD": return "USD";
case "ME": return "EUR";
case "MG": return "EUR";
case "MH": return "USD";
case "MK": return "MKD";
case "ML": return "XOF";
case "MO": return "USD";
case "MP": return "USD";
case "MR": return "USD";
case "MT": return "EUR";
case "MU": return "USD";
case "MV": return "MVR";
case "MW": return "GBP";
case "MX": return "MXN";
case "MY": return "MYR";
case "MZ": return "USD";
case "NA": return "USD";
case "NE": return "XOF";
case "NG": return "USD";
case "NI": return "NIO";
case "NL": return "EUR";
case "NO": return "NOK";
case "NP": return "INR";
case "NR": return "AUD";
case "NZ": return "NZD";
case "OM": return "OMR";
case "PA": return "PAB";
case "PE": return "PEN";
case "PG": return "AUD";
case "PH": return "PHP";
case "PK": return "PKR";
case "PL": return "PLN";
case "PR": return "USD";
case "PS": return "USD";
case "PT": return "EUR";
case "PW": return "USD";
case "PY": return "PYG";
case "QA": return "QAR";
case "RE": return "EUR";
case "RO": return "RON";
case "RS": return "EUR";
case "RU": return "RUB";
case "SA": return "SAR";
case "SB": return "USD";
case "SC": return "SCR";
case "SD": return "GBP";
case "SE": return "SEK";
case "SG": return "SGD";
case "SI": return "EUR";
case "SK": return "EUR";
case "SM": return "EUR";
case "SN": return "XOF";
case "SR": return "EUR";
case "SV": return "USD";
case "TD": return "XAF";
case "TG": return "XOF";
case "TH": return "THB";
case "TM": return "RUB";
case "TN": return "TND";
case "TO": return "USD";
case "TP": return "USD";
case "TR": return "TRY";
case "TT": return "TTD";
case "TW": return "TWD";
case "TZ": return "USD";
case "UA": return "UAH";
case "US": return "USD";
case "UY": return "UYU";
case "UZ": return "RUB";
case "VA": return "EUR";
case "VC": return "USD";
case "VE": return "USD";
case "VI": return "USD";
case "VN": return "VND";
case "VU": return "AUD";
case "YE": return "USD";
case "ZA": return "ZAR";
case "ZM": return "USD";
case "ZW": return "USD";
}
}
</script>
</html>