Skip to content

Commit

Permalink
fix can't change portal language (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilelkihal authored Nov 27, 2024
1 parent e9bf264 commit edd1cc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def set_locale
cookies.permanent[:locale] = I18n.locale if cookies[:locale].nil?
logger.debug "* Locale set to '#{I18n.locale}'"

I18n.locale = portal_lang if portal_language_enabled?(I18n.locale)
I18n.locale = portal_lang unless portal_language_enabled?(I18n.locale)

session[:locale] = I18n.locale
end
Expand Down Expand Up @@ -430,7 +430,7 @@ def json_link(url, optional_params)
optional_params_str = filtered_params.map { |param, value| "#{param}=#{value}" }.join("&")
return base_url + optional_params_str + "&apikey=#{$API_KEY}"
end

def set_federated_portals
RequestStore.store[:federated_portals] = params[:portals]&.split(',')
end
Expand Down

0 comments on commit edd1cc0

Please sign in to comment.