5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 10:21:42 +00:00

fix: usar el idioma de le usuarie

This commit is contained in:
f 2023-04-04 13:34:19 -03:00
parent 38d6f6d842
commit 8d31170086

View file

@ -32,7 +32,9 @@ class ApplicationController < ActionController::Base
return unless current_usuarie return unless current_usuarie
return if current_usuarie.confirmed? return if current_usuarie.confirmed?
flash[:notice] ||= I18n.t('devise.registrations.signed_up') I18n.with_locale(current_usuarie.lang) do
flash[:notice] ||= I18n.t('devise.registrations.signed_up')
end
end end
def uuid?(string) def uuid?(string)
@ -92,6 +94,7 @@ class ApplicationController < ActionController::Base
protected protected
def configure_permitted_parameters def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: Usuarie::CONSENT_FIELDS)
devise_parameter_sanitizer.permit(:account_update, keys: %i[lang]) devise_parameter_sanitizer.permit(:account_update, keys: %i[lang])
end end