Consolidate translations for hidden field

The string '< Hidden >' was agreed on as a good default, so we will use the hidden_field key.
I also moved the definition in en.yml up to the more general area at the start of admin.reports section (before it was hidden between report-specific keys.
This commit is contained in:
David Cook
2025-03-31 16:24:07 +11:00
parent 729dc9d658
commit e02ef08b06
6 changed files with 15 additions and 16 deletions

View File

@@ -24,9 +24,9 @@ module Orders
end
def mask_customer_names
order.bill_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden'),
order.bill_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden_field'),
lastname: "")
order.ship_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden'),
order.ship_address&.assign_attributes(firstname: I18n.t('admin.reports.hidden_field'),
lastname: "")
end
@@ -37,7 +37,7 @@ module Orders
def mask_contact_data
order.bill_address&.assign_attributes(phone: "")
order.ship_address&.assign_attributes(phone: "")
order.assign_attributes(email: I18n.t('admin.reports.hidden'))
order.assign_attributes(email: I18n.t('admin.reports.hidden_field'))
end
def mask_address