mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
12 lines
242 B
Ruby
12 lines
242 B
Ruby
# frozen_string_literal: true
|
|
|
|
module I18nHelper
|
|
def set_locale
|
|
UserLocaleSetter.new(spree_current_user, params[:locale], cookies).set_locale
|
|
end
|
|
|
|
def valid_locale(user)
|
|
UserLocaleSetter.new(user).valid_current_locale
|
|
end
|
|
end
|