mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Format money amounts according to locale
It used to be formatted according to the currency. So even if the default currency is USD but your locale is French then you should see it formatted as $10.000,00 instead of the US formatting of $10,000.00.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
Rails.application.reloader.to_prepare do
|
||||
Money.locale_backend = :i18n
|
||||
Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN
|
||||
Money.default_currency = Money::Currency.new(ENV.fetch('CURRENCY'))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user