mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 04:31:49 +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]
|
# @return [String,Symbol]
|
||||||
def current_locale
|
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
|
session[:locale] || current_usuarie&.lang || I18n.locale
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue