Fix broken i18n in text welcome mailer tags area (#32571)
This commit is contained in:
parent
8b56509625
commit
bd6c96f737
3 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue