Skip to content

Use default locale for all mailer actions#6425

Open
Hemang360 wants to merge 2 commits intorubygems:masterfrom
Hemang360:fix-locale-handling
Open

Use default locale for all mailer actions#6425
Hemang360 wants to merge 2 commits intorubygems:masterfrom
Hemang360:fix-locale-handling

Conversation

@Hemang360
Copy link
Copy Markdown
Contributor

Fixes #6316
deliver_later serializes I18n.locale at enqueue time. So when a german speaking user confirms gem ownership, all owners get their notification in german instead of english. This PR adds an around_action in ApplicationMailer to force default locale for all mailers.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.51%. Comparing base (23f0be6) to head (f3e0f41).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6425      +/-   ##
==========================================
- Coverage   97.07%   94.51%   -2.56%     
==========================================
  Files         494      494              
  Lines       10514    10577      +63     
==========================================
- Hits        10206     9997     -209     
- Misses        308      580     +272     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Invitation acceptation email using invitee locale rather than inviter

1 participant