From 91880cdbecc285e87f77aaf1aca0fef8fd7563ef Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 2 Jul 2020 14:33:41 +0200 Subject: [PATCH] Make I18nHelper `#available_locale?` method public --- app/helpers/i18n_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/i18n_helper.rb b/app/helpers/i18n_helper.rb index 6d4c3845c1..b755e85a54 100644 --- a/app/helpers/i18n_helper.rb +++ b/app/helpers/i18n_helper.rb @@ -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