Add I18N to all reflexes

This commit is contained in:
Jean-Baptiste Bellet
2023-03-13 15:02:05 +01:00
parent 68902021ab
commit 288cd367bc

View File

@@ -23,4 +23,8 @@ class ApplicationReflex < StimulusReflex::Reflex
def current_ability
Spree::Ability.new(current_user)
end
def with_locale(&block)
I18n.with_locale(current_user.locale, &block)
end
end