Default country code translation is its code

This commit is contained in:
echarp 2019-09-28 20:18:01 +02:00
parent 7a48b537c8
commit 2c4d6c9928

View File

@ -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|
"#{t region.code, scope: :countries}: #{es.size}" "#{t region.code, scope: :countries, default: region.code}: #{es.size}"
end.join ', ' end.join ', '
end end