Open Paul-Bob opened 3 weeks ago
Allow callable name and button_label on filters to ensure that localization is applied on each request.
name
button_label
class Avo::Filters::Club < Avo::Filters::TextFilter self.name = -> { I18n.t("avo.filter_translations.club.name") } self.button_label = -> { I18n.t("avo.filter_translations.club.button_label") } def apply(request, query, value) query.joins(:club).where("clubs.name ILIKE ?", "%#{value}%") end end
This issue has been marked as stale because there was no activity for the past 15 days.
PRs that added this functionality:
Feature
Allow callable
name
andbutton_label
on filters to ensure that localization is applied on each request.