mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 08:21:41 +00:00
fix: poder cambiar el idioma!
This commit is contained in:
parent
0910753437
commit
a2660485b8
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class ApplicationController < ActionController::Base
|
|||
#
|
||||
# @return [String,Symbol]
|
||||
def current_locale
|
||||
session[:locale] ||= params[:change_locale_to]
|
||||
session[:locale] = params[:change_locale_to] if params[:change_locale_to].present?
|
||||
|
||||
session[:locale] || current_usuarie&.lang || I18n.locale
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue