mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Make I18nHelper #available_locale? method public
This commit is contained in:
@@ -24,12 +24,12 @@ module I18nHelper
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def available_locale?(locale)
|
||||
Rails.application.config.i18n.available_locales.include?(locale)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def current_user_locale
|
||||
spree_current_user.andand.locale
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user