This repository was archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathcurrencycodemap.js
208 lines (200 loc) · 4.09 KB
/
currencycodemap.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Currency code map.
*/
/**
* Namespace for locale number format functions
*/
goog.provide('goog.i18n.currencyCodeMap');
goog.provide('goog.i18n.currencyCodeMapTier2');
/**
* Deprecated, this data is not being updated. Please use
* {@link goog.i18n.currency}.
*
* The mapping of currency symbol through intl currency code.
* The source of information is mostly from wikipedia and CLDR. Since there is
* no authoritative source, items are judged by personal perception.
* If an application need currency support that available in tier2, it
* should extend currencyCodeMap to include tier2 data by doing this:
* goog.object.extend(goog.i18n.currencyCodeMap,
* goog.i18n.currencyCodeMapTier2);
*
* @deprecated Use {@link goog.i18n.currency.getLocalCurrencyPattern} instead.
* @const {!Object<string, string>}
*/
goog.i18n.currencyCodeMap = {
'AED': '\u062F\u002e\u0625',
'ARS': '$',
'AUD': '$',
'BDT': '\u09F3',
'BRL': 'R$',
'CAD': '$',
'CHF': 'Fr.',
'CLP': '$',
'CNY': '\u00a5',
'COP': '$',
'CRC': '\u20a1',
'CUP': '$',
'CZK': 'K\u010d',
'DKK': 'kr.',
'DOP': 'RD$',
'EGP': '\u00a3',
'EUR': '\u20ac',
'GBP': '\u00a3',
'HKD': '$',
'HRK': 'kn',
'HUF': 'Ft',
'IDR': 'Rp',
'ILS': '\u20AA',
'INR': 'Rs',
'IQD': '\u0639\u062F',
'ISK': 'kr',
'JMD': '$',
'JPY': '\u00a5',
'KRW': '\u20A9',
'KWD': '\u062F\u002e\u0643',
'LKR': 'Rs',
'LVL': 'Ls',
'MNT': '\u20AE',
'MXN': '$',
'MYR': 'RM',
'NOK': 'kr',
'NZD': '$',
'PAB': 'B/.',
'PEN': 'S/.',
'PHP': 'P',
'PKR': 'Rs.',
'PLN': 'z\u0142',
'RON': 'L',
'RUB': '\u20bd',
'SAR': '\u0633\u002E\u0631',
'SEK': 'kr',
'SGD': '$',
'SYP': 'SYP',
'THB': '\u0e3f',
'TRY': 'TL',
'TWD': 'NT$',
'USD': '$',
'UYU': '$',
'VEF': 'Bs.F',
'VND': '\u20AB',
'XAF': 'FCFA',
'XCD': '$',
'YER': 'YER',
'ZAR': 'R'
};
/**
* Deprecated, this data is not being updated. Please use
* {@link goog.i18n.currency}.
*
* This group of currency data is unlikely to be used. In case they are,
* program need to merge it into goog.locale.CurrencyCodeMap.
*
* @deprecated Call {@link goog.i18n.currency.addTier2Support} and then use
* {@link goog.i18n.currency.getLocalCurrencyPattern}.
* @const {!Object<string, string>}
*/
goog.i18n.currencyCodeMapTier2 = {
'AFN': '\u060b',
'ALL': 'Lek',
'AMD': '\u0564\u0580\u002e',
'ANG': 'ANf.',
'AOA': 'Kz',
'AWG': '\u0192',
'AZN': '\u20bc',
'BAM': '\u041a\u041c',
'BBD': '$',
'BGN': '\u043b\u0432',
'BHD': '\u0628\u002e\u062f\u002e',
'BIF': 'FBu',
'BMD': '$',
'BND': '$',
'BOB': 'B$',
'BSD': '$',
'BTN': 'Nu.',
'BWP': 'P',
'BYR': 'p.',
'BZD': '$',
'CDF': 'F',
'CUC': 'CUC$',
'CVE': '$',
'DJF': 'Fdj',
'DZD': '\u062f\u062C',
'ERN': 'Nfk',
'ETB': 'Br',
'FJD': '$',
'FKP': '\u00a3',
'GEL': 'GEL',
'GHS': '\u20B5',
'GIP': '\u00a3',
'GMD': 'D',
'GNF': 'FG',
'GTQ': 'Q',
'GYD': '$',
'HNL': 'L',
'HTG': 'G',
'IRR': '\ufdfc',
'JOD': 'JOD',
'KES': 'KSh',
'KGS': 'som',
'KHR': '\u17DB',
'KMF': 'KMF',
'KPW': '\u20A9',
'KYD': '$',
'KZT': 'KZT',
'LAK': '\u20AD',
'LBP': '\u0644\u002e\u0644',
'LRD': '$',
'LSL': 'L',
'LTL': 'Lt',
'LYD': '\u0644\u002e\u062F',
'MAD': '\u0645\u002E\u062F\u002E',
'MDL': 'MDL',
'MGA': 'MGA',
'MKD': 'MKD',
'MMK': 'K',
'MOP': 'MOP$',
'MRO': 'UM',
'MUR': 'Rs',
'MVR': 'Rf',
'MWK': 'MK',
'MZN': 'MTn',
'NAD': '$',
'NGN': '\u20A6',
'NIO': 'C$',
'NPR': 'Rs',
'OMR': '\u0639\u002E\u062F\u002E',
'PGK': 'K',
'PYG': 'Gs.',
'QAR': '\u0642\u002E\u0631',
'RSD': '\u0420\u0421\u0414',
'RWF': 'RF',
'SBD': '$',
'SCR': 'SR',
'SDG': 'SDG',
'SHP': '\u00a3',
'SLL': 'Le',
'SOS': 'So. Sh.',
'SRD': '$',
'SSP': '£',
'STD': 'Db',
'SZL': 'L',
'TJS': 'TJS',
'TND': '\u062F\u002e\u062A ',
'TOP': 'T$',
'TTD': '$',
'TZS': 'TZS',
'UAH': 'грн.',
'UGX': 'USh',
'UZS': 'UZS',
'VUV': 'Vt',
'WST': 'WS$',
'XOF': 'CFA',
'XPF': 'F',
'ZMW': 'ZMW',
'ZWD': '$'
};