diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7b4b2c29..04209f77 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 diff --git a/app/views/layouts/base.haml b/app/views/layouts/base.haml index af97fb9f..b0e54017 100644 --- a/app/views/layouts/base.haml +++ b/app/views/layouts/base.haml @@ -27,7 +27,6 @@ = render 'navigation/guest' = render 'shared/announcements' = yield - = render 'shared/locales' - if Rails.env.development? #debug %hr diff --git a/app/views/shared/_locales.haml b/app/views/shared/_locales.haml index ef0a6f39..302f9c08 100644 --- a/app/views/shared/_locales.haml +++ b/app/views/shared/_locales.haml @@ -1,4 +1,4 @@ -.container.d-print-none.d-none +.container.d-print-none .locales %span %a{ href: '#', id: 'locale-switch' }