0
0
Fork 0

Fix broken i18n in text welcome mailer tags area (#32571)

This commit is contained in:
Matt Jankowski 2024-10-18 03:19:37 -04:00 committed by GitHub
parent 8b56509625
commit bd6c96f737
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -244,6 +244,11 @@ module ApplicationHelper
tag.input(type: :text, maxlength: 999, spellcheck: false, readonly: true, **options)
end
def recent_tag_usage(tag)
people = tag.history.aggregate(2.days.ago.to_date..Time.zone.today).accounts
I18n.t 'user_mailer.welcome.hashtags_recent_count', people: number_with_delimiter(people), count: people
end
private
def storage_host_var