Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save/retrieve locale when serializing mail data in the queue #523

Merged
merged 5 commits into from
Oct 13, 2020
Merged

save/retrieve locale when serializing mail data in the queue #523

merged 5 commits into from
Oct 13, 2020

Conversation

mjauvin
Copy link
Contributor

@mjauvin mjauvin commented Sep 23, 2020

When a mail is queued, we need to save the locale that was used to generate the mail in order to be able to localize the mail view when the mail is dequeued.

Upon dequeueing the mail, we retrieve the locale and set the App locale with it.

src/Mail/Mailable.php Outdated Show resolved Hide resolved
src/Mail/Mailable.php Outdated Show resolved Hide resolved
@mjauvin
Copy link
Contributor Author

mjauvin commented Oct 13, 2020

What do we need to move this forward, it's blocking rainlab/translate-plugin#605

src/Mail/Mailable.php Outdated Show resolved Hide resolved
@LukeTowers LukeTowers merged commit 549895c into octobercms:develop Oct 13, 2020
@mjauvin mjauvin deleted the save-locale-on-queue branch October 13, 2020 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants