mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
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.
6 lines
198 B
Ruby
6 lines
198 B
Ruby
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
|