Use translation for none in reports

This commit is contained in:
Ashish Gaur
2025-04-12 12:01:06 +05:30
parent 5dcdf0caed
commit 2da170912f
2 changed files with 2 additions and 1 deletions

View File

@@ -1760,6 +1760,7 @@ en:
email_confirmation: "Email confirmation is pending. We've sent a confirmation email to %{email}."
not_visible: "%{enterprise} is not visible and so cannot be found on the map or in searches"
reports:
none: none
deprecated: "This report is deprecated and will be removed in a future release."
hidden: HIDDEN
unitsize: UNITSIZE

View File

@@ -79,7 +79,7 @@ module Reporting
# rubocop:disable Metrics/CyclomaticComplexity
def format_cell(value, column = nil)
return "none" if value.nil?
return I18n.t("admin.reports.none") if value.nil?
# Currency
if report.columns_format[column] == :currency