Remove redundant usage of Gitlab::I18n.with_locale in mailers
requested to merge gitlab-community/gitlab:417236-remove-gitlab-i18n-with-locale-in-mailers into master
What does this MR do and why?
This commit removes the redundant usage of Gitlab::I18n.with_locale
in mailer methods that already use mail_with_locale
or email_with_layout
.
These methods already internally set the locale based on the user's preferred language, so wrapping them with Gitlab::I18n.with_locale
is unnecessary.
Issue: #417236 (closed)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
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.
Edited by Jessie Young