-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathCurrencies.cs
33 lines (30 loc) · 1 KB
/
Currencies.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Collections.Generic;
namespace UWP.Shared.Constants {
public class Currencies {
public static string GetCurrencySymbol(string currency) {
string symbol;
return CurrencySymbol.TryGetValue(currency ?? "", out symbol) ? symbol : " ";
}
/// TODO: Once I add a good way to convert currencies, add the following:
/// { "PHP", "₱"},
/// { "ZAR", "R"},
public static readonly Dictionary<string, string> CurrencySymbol = new Dictionary<string, string>() {
{ "ARS", "$" },
{ "AUD", "$" },
{ "BRL", "R$"},
{ "BTC", "₿"},
{ "CAD", "$" },
{ "CNY", "¥" },
{ "CZK", "Kč" },
{ "ETH", "Ξ" },
{ "EUR", "€" },
{ "GBP", "£" },
{ "ILS", "₪" },
{ "INR", "₹" },
{ "JPY", "¥" },
{ "MXN", "$" },
{ "PLN", "zł"},
{ "USD", "$" },
};
}
}