Add translations for privacy settings flashes
This commit is contained in:
parent
2fc4b8f4a4
commit
6541442098
|
@ -63,9 +63,9 @@ class UserController < ApplicationController
|
|||
:privacy_allow_stranger_answers,
|
||||
:privacy_show_in_search)
|
||||
if current_user.update(user_attributes)
|
||||
flash[:success] = t('flash.user.update_privacy.success')
|
||||
flash[:success] = t(".success")
|
||||
else
|
||||
flash[:error] = t('flash.user.update_privacy.error')
|
||||
flash[:error] = t(".error")
|
||||
end
|
||||
redirect_to edit_user_privacy_path
|
||||
end
|
||||
|
|
|
@ -51,6 +51,9 @@ en:
|
|||
error: :errors.invalid_otp
|
||||
destroy_2fa:
|
||||
success: "Two factor authentication has been disabled for your account."
|
||||
update_privacy:
|
||||
success: :user.update.success
|
||||
error: :user.update.error
|
||||
update_profile:
|
||||
success: :user.update.success
|
||||
error: :user.update.error
|
||||
|
|
Loading…
Reference in New Issue