allow to configure currency (closes foodcoops#258)
This commit is contained in:
parent
f09ef892dc
commit
68ccc19c70
6 changed files with 34 additions and 1 deletions
7
config/initializers/currency_display.rb
Normal file
7
config/initializers/currency_display.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue