Skip to content

Remove redundant usage of Gitlab::I18n.with_locale in mailers

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.

Edited by Jessie Young

Merge request reports