danthorpe / Money

Swift value types for working with money & currency
MIT License
933 stars 91 forks source link

Wrong Formatting for specific Locale ? #51

Open sawijaya opened 8 years ago

sawijaya commented 8 years ago

Hi,, i'm trying to change format specific with locale and region on my device is United States, but why the currency format still using US ($) not adjust with my specific locale example let money: Money = 9999 debugPrint(money.formattedWithStyle(.CurrencyStyle, forLocale: .Indonesian)) output: "$9.999,00" Why format still $ not IDR(Rp) ?

Any ideas?

danthorpe commented 8 years ago

Hmm, I think this is probably a bug in how Money is figuring out the NSLocale. I will look into it, but won't have an opportunity for a couple of days.