mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Csv Report: translate headers
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
56fab26235
commit
35b5ca3a51
@@ -29,8 +29,6 @@ module Reporting
|
||||
private
|
||||
|
||||
def translate_header(key)
|
||||
return key.to_s if report.raw_render?
|
||||
|
||||
# Quite some headers use currency interpolation, so providing it by default
|
||||
default_params = { currency: currency_symbol, currency_symbol: currency_symbol }
|
||||
report.custom_headers[key] || I18n.t("report_header_#{key}", **default_params)
|
||||
|
||||
Reference in New Issue
Block a user