Address review suggestions

This commit is contained in:
Andreas Nedbal 2022-01-23 21:36:33 +01:00 committed by Andreas Nedbal
parent fb812d4f36
commit 8d73008ebf
3 changed files with 1 additions and 18 deletions

View File

@ -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

View File

@ -27,7 +27,6 @@
= render 'navigation/guest'
= render 'shared/announcements'
= yield
= render 'shared/locales'
- if Rails.env.development?
#debug
%hr

View File

@ -1,4 +1,4 @@
.container.d-print-none.d-none
.container.d-print-none
.locales
%span
%a{ href: '#', id: 'locale-switch' }