Translated country in the digest markdown
This commit is contained in:
parent
f78b976271
commit
9eaba72481
@ -10,7 +10,7 @@ module DigestHelper
|
|||||||
|
|
||||||
def count_by_country(events)
|
def count_by_country(events)
|
||||||
events.group_by { |e| e.region&.region || e.region }.collect do |region, es|
|
events.group_by { |e| e.region&.region || e.region }.collect do |region, es|
|
||||||
"#{region}: #{es.size}"
|
"#{t region.code, scope: :countries}: #{es.size}"
|
||||||
end.join ', '
|
end.join ', '
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user