QuintinAdam / spree_flexi_variants

Spree extension to create product variants as-needed. Spree 3.0+
https://github.com/QuintinAdam/spree_flexi_variants
BSD 3-Clause "New" or "Revised" License
27 stars 38 forks source link

FIX: JS currency formatting #6

Closed mroach closed 8 years ago

mroach commented 8 years ago

Currency formatting was hardcoded to use English. This is great for dollars but wrong for every other currency. For example if your web shop was using Euros and you had use_javascript_pricing_updates switched on, the price would be formatted in dollars.

Now you can explicitly map currencies to locales Ex) EUR => de-DE, or a best guess is made by matching ISO country codes on currencies and regions. Ex) AUD => en-AU, DKK => da-DK.

QuintinAdam commented 8 years ago

Great looks good to me. I'll merge to master and also create a 3.1 branch.