Feat: add prepend to devise failure
What does this MR do and why?
Related MR on Jihu.
Devise is using the translations located at config/locales/devise.en.yml
, so we can't overwrite it in jh/locale/en/gitlab.po
. To override the error messages, we need to extend devise_failure.rb
to override the i18n_message
method.
Proposal
- add
prepend_mod_with
togitlab/devise_failure.rb
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
/cc @prajnamas
Edited by Peter Leitzen