Allow customizing the text to display poll dates
Since we were using `I18n.t`, our monkey-patch of the `t` helper wasn't being applied.
This commit is contained in:
@@ -9,6 +9,6 @@ class Polls::PollComponent < ApplicationComponent
|
||||
private
|
||||
|
||||
def dates
|
||||
I18n.t("polls.dates", open_at: l(poll.starts_at.to_date), closed_at: l(poll.ends_at.to_date))
|
||||
t("polls.dates", open_at: l(poll.starts_at.to_date), closed_at: l(poll.ends_at.to_date))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user