Modern Apps git

← Modern-Apps.git

calculator: add full names for all currencies

Commit
2f644efbd154bce9d4207b7a836449d9a9e93cda
Author
Vayun Mathur <[email protected]>
When
2026-08-14 03:38 UTC (3 months ago)
Parents
3a88ba2

Diff

calculator/src/main/java/com/vayunmathur/calculator/util/Units.kt
diff --git a/calculator/src/main/java/com/vayunmathur/calculator/util/Units.kt b/calculator/src/main/java/com/vayunmathur/calculator/util/Units.ktindex f0558489c1..31c6a81d2c 100644--- a/calculator/src/main/java/com/vayunmathur/calculator/util/Units.kt+++ b/calculator/src/main/java/com/vayunmathur/calculator/util/Units.kt@@ -230,22 +230,64 @@ object UnitRegistry {     val CURRENCY_PRIORITY: List<String> =         listOf("USD", "EUR", "GBP", "JPY", "CNY", "INR", "CAD", "AUD", "CHF", "HKD") -    /** Display names for common ISO 4217 codes; codes not listed fall back to the code itself. */+    /** Display names for every ISO 4217 code the rate source returns; unknown codes fall back+     * to the code itself. */     private val CURRENCY_NAMES: Map<String, String> = mapOf(-        "USD" to "US Dollar", "EUR" to "Euro", "GBP" to "British Pound", "JPY" to "Japanese Yen",-        "CNY" to "Chinese Yuan", "INR" to "Indian Rupee", "CAD" to "Canadian Dollar",-        "AUD" to "Australian Dollar", "CHF" to "Swiss Franc", "HKD" to "Hong Kong Dollar",-        "NZD" to "New Zealand Dollar", "SGD" to "Singapore Dollar", "SEK" to "Swedish Krona",-        "NOK" to "Norwegian Krone", "DKK" to "Danish Krone", "KRW" to "South Korean Won",-        "MXN" to "Mexican Peso", "BRL" to "Brazilian Real", "ZAR" to "South African Rand",-        "RUB" to "Russian Ruble", "TRY" to "Turkish Lira", "AED" to "UAE Dirham",-        "SAR" to "Saudi Riyal", "THB" to "Thai Baht", "IDR" to "Indonesian Rupiah",-        "MYR" to "Malaysian Ringgit", "PHP" to "Philippine Peso", "PLN" to "Polish Zloty",-        "CZK" to "Czech Koruna", "HUF" to "Hungarian Forint", "ILS" to "Israeli Shekel",-        "CLP" to "Chilean Peso", "COP" to "Colombian Peso", "ARS" to "Argentine Peso",-        "EGP" to "Egyptian Pound", "NGN" to "Nigerian Naira", "PKR" to "Pakistani Rupee",-        "BDT" to "Bangladeshi Taka", "VND" to "Vietnamese Dong", "UAH" to "Ukrainian Hryvnia",-        "TWD" to "Taiwan Dollar",+        "AED" to "UAE Dirham", "AFN" to "Afghan Afghani", "ALL" to "Albanian Lek",+        "AMD" to "Armenian Dram", "ANG" to "Netherlands Antillean Guilder", "AOA" to "Angolan Kwanza",+        "ARS" to "Argentine Peso", "AUD" to "Australian Dollar", "AWG" to "Aruban Florin",+        "AZN" to "Azerbaijani Manat", "BAM" to "Bosnia-Herzegovina Convertible Mark",+        "BBD" to "Barbadian Dollar", "BDT" to "Bangladeshi Taka", "BGN" to "Bulgarian Lev",+        "BHD" to "Bahraini Dinar", "BIF" to "Burundian Franc", "BMD" to "Bermudan Dollar",+        "BND" to "Brunei Dollar", "BOB" to "Bolivian Boliviano", "BRL" to "Brazilian Real",+        "BSD" to "Bahamian Dollar", "BTN" to "Bhutanese Ngultrum", "BWP" to "Botswanan Pula",+        "BYN" to "Belarusian Ruble", "BZD" to "Belize Dollar", "CAD" to "Canadian Dollar",+        "CDF" to "Congolese Franc", "CHF" to "Swiss Franc", "CLP" to "Chilean Peso",+        "CNY" to "Chinese Yuan", "COP" to "Colombian Peso", "CRC" to "Costa Rican Colon",+        "CUP" to "Cuban Peso", "CVE" to "Cape Verdean Escudo", "CZK" to "Czech Koruna",+        "DJF" to "Djiboutian Franc", "DKK" to "Danish Krone", "DOP" to "Dominican Peso",+        "DZD" to "Algerian Dinar", "EGP" to "Egyptian Pound", "ERN" to "Eritrean Nakfa",+        "ETB" to "Ethiopian Birr", "EUR" to "Euro", "FJD" to "Fijian Dollar",+        "FKP" to "Falkland Islands Pound", "FOK" to "Faroese Krona", "GBP" to "British Pound",+        "GEL" to "Georgian Lari", "GGP" to "Guernsey Pound", "GHS" to "Ghanaian Cedi",+        "GIP" to "Gibraltar Pound", "GMD" to "Gambian Dalasi", "GNF" to "Guinean Franc",+        "GTQ" to "Guatemalan Quetzal", "GYD" to "Guyanaese Dollar", "HKD" to "Hong Kong Dollar",+        "HNL" to "Honduran Lempira", "HRK" to "Croatian Kuna", "HTG" to "Haitian Gourde",+        "HUF" to "Hungarian Forint", "IDR" to "Indonesian Rupiah", "ILS" to "Israeli Shekel",+        "IMP" to "Manx Pound", "INR" to "Indian Rupee", "IQD" to "Iraqi Dinar",+        "IRR" to "Iranian Rial", "ISK" to "Icelandic Krona", "JEP" to "Jersey Pound",+        "JMD" to "Jamaican Dollar", "JOD" to "Jordanian Dinar", "JPY" to "Japanese Yen",+        "KES" to "Kenyan Shilling", "KGS" to "Kyrgystani Som", "KHR" to "Cambodian Riel",+        "KID" to "Kiribati Dollar", "KMF" to "Comorian Franc", "KRW" to "South Korean Won",+        "KWD" to "Kuwaiti Dinar", "KYD" to "Cayman Islands Dollar", "KZT" to "Kazakhstani Tenge",+        "LAK" to "Laotian Kip", "LBP" to "Lebanese Pound", "LKR" to "Sri Lankan Rupee",+        "LRD" to "Liberian Dollar", "LSL" to "Lesotho Loti", "LYD" to "Libyan Dinar",+        "MAD" to "Moroccan Dirham", "MDL" to "Moldovan Leu", "MGA" to "Malagasy Ariary",+        "MKD" to "Macedonian Denar", "MMK" to "Myanmar Kyat", "MNT" to "Mongolian Tugrik",+        "MOP" to "Macanese Pataca", "MRU" to "Mauritanian Ouguiya", "MUR" to "Mauritian Rupee",+        "MVR" to "Maldivian Rufiyaa", "MWK" to "Malawian Kwacha", "MXN" to "Mexican Peso",+        "MYR" to "Malaysian Ringgit", "MZN" to "Mozambican Metical", "NAD" to "Namibian Dollar",+        "NGN" to "Nigerian Naira", "NIO" to "Nicaraguan Cordoba", "NOK" to "Norwegian Krone",+        "NPR" to "Nepalese Rupee", "NZD" to "New Zealand Dollar", "OMR" to "Omani Rial",+        "PAB" to "Panamanian Balboa", "PEN" to "Peruvian Sol", "PGK" to "Papua New Guinean Kina",+        "PHP" to "Philippine Peso", "PKR" to "Pakistani Rupee", "PLN" to "Polish Zloty",+        "PYG" to "Paraguayan Guarani", "QAR" to "Qatari Riyal", "RON" to "Romanian Leu",+        "RSD" to "Serbian Dinar", "RUB" to "Russian Ruble", "RWF" to "Rwandan Franc",+        "SAR" to "Saudi Riyal", "SBD" to "Solomon Islands Dollar", "SCR" to "Seychellois Rupee",+        "SDG" to "Sudanese Pound", "SEK" to "Swedish Krona", "SGD" to "Singapore Dollar",+        "SHP" to "St. Helena Pound", "SLE" to "Sierra Leonean Leone", "SOS" to "Somali Shilling",+        "SRD" to "Surinamese Dollar", "SSP" to "South Sudanese Pound",+        "STN" to "Sao Tome & Principe Dobra", "SYP" to "Syrian Pound", "SZL" to "Swazi Lilangeni",+        "THB" to "Thai Baht", "TJS" to "Tajikistani Somoni", "TMT" to "Turkmenistani Manat",+        "TND" to "Tunisian Dinar", "TOP" to "Tongan Pa'anga", "TRY" to "Turkish Lira",+        "TTD" to "Trinidad & Tobago Dollar", "TVD" to "Tuvaluan Dollar", "TWD" to "Taiwan Dollar",+        "TZS" to "Tanzanian Shilling", "UAH" to "Ukrainian Hryvnia", "UGX" to "Ugandan Shilling",+        "USD" to "US Dollar", "UYU" to "Uruguayan Peso", "UZS" to "Uzbekistani Som",+        "VES" to "Venezuelan Bolivar", "VND" to "Vietnamese Dong", "VUV" to "Vanuatu Vatu",+        "WST" to "Samoan Tala", "XAF" to "Central African CFA Franc", "XCD" to "East Caribbean Dollar",+        "XCG" to "Caribbean Guilder", "XDR" to "Special Drawing Rights",+        "XOF" to "West African CFA Franc", "XPF" to "CFP Franc", "YER" to "Yemeni Rial",+        "ZAR" to "South African Rand", "ZMW" to "Zambian Kwacha", "ZWL" to "Zimbabwean Dollar",     )      /**