Address review suggestions
This commit is contained in:
parent
fb812d4f36
commit
8d73008ebf
|
@ -15,22 +15,6 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
I18n.locale = "en"
|
||||
|
||||
# if params[:hl].nil?
|
||||
# if current_user.present?
|
||||
# I18n.locale = current_user.locale
|
||||
# elsif not cookies[:lang].nil?
|
||||
# I18n.locale = cookies[:lang]
|
||||
# else
|
||||
# I18n.locale = 'en'
|
||||
# end
|
||||
# else
|
||||
# I18n.locale = params[:hl]
|
||||
# if current_user.present?
|
||||
# current_user.locale = I18n.locale
|
||||
# current_user.save!
|
||||
# end
|
||||
# end
|
||||
|
||||
cookies[:lang] = I18n.locale
|
||||
end
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
= render 'navigation/guest'
|
||||
= render 'shared/announcements'
|
||||
= yield
|
||||
= render 'shared/locales'
|
||||
- if Rails.env.development?
|
||||
#debug
|
||||
%hr
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.container.d-print-none.d-none
|
||||
.container.d-print-none
|
||||
.locales
|
||||
%span
|
||||
%a{ href: '#', id: 'locale-switch' }
|
||||
|
|
Loading…
Reference in New Issue