5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-29 01:16:07 +00:00

fix: poder cambiar el idioma!

This commit is contained in:
f 2023-03-17 16:03:11 -03:00
parent 0910753437
commit a2660485b8

View file

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