allow to configure currency (closes foodcoops#258)

This commit is contained in:
wvengen 2014-06-27 11:45:34 +02:00
parent f09ef892dc
commit 68ccc19c70
6 changed files with 34 additions and 1 deletions

View file

@ -0,0 +1,7 @@
# 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