foodsoft/config/initializers/currency_display.rb
2021-03-02 09:12:19 +01:00

7 lines
311 B
Ruby

# remove all currency translations, so that we can set the default language and
# have it shown in all other languages too
::I18n.available_locales.each do |locale|
unless locale == ::I18n.default_locale
::I18n.backend.store_translations(locale, number: { currency: { format: { unit: nil } } })
end
end