currencycodemap.js 4.6 KB

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