bengourley / currency-symbol-map

A function to lookup the currency symbol for a given currency code
BSD 2-Clause "Simplified" License
326 stars 112 forks source link

AUD symbol incorrect #83

Closed Gnenc closed 1 year ago

Gnenc commented 2 years ago

https://github.com/bengourley/currency-symbol-map/blob/e952bf895ca6f8a549331f3f4f13e69ce8bf6d60/map.js#L9

should be AU$ instead of simple $ https://en.wikipedia.org/wiki/Australian_dollar

namenyi commented 1 year ago

Hello @Gnenc, thanks for raising it!

The page you linked states these:

Symbol $

The Australian dollar (sign: $; code: AUD) is the currency of Australia, (...) it is almost always abbreviated with the dollar sign ($), with A$ or AU$ sometimes used to distinguish it from other dollar-denominated currencies.

I find similar information in official sources too, signalling that $ is the primary symbol.

Based on these, I don't think it would be a good idea to push such a breaking change to the library.