-
Notifications
You must be signed in to change notification settings - Fork 24
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
Translations default to control panel language instead of site language #47
Comments
Thanks for reporting this. Are you seeing this happening on a front-end request or in the control panel? |
With front-end requests and the CP the correct language is applied. When the email is sent the language falls back to "en" or whatever is set in the defaultCpLanguage general config |
Ok thanks, will look into fixing this soon. |
Another question, how are you seeing that the language is incorrent? Are you using the translate filter in your campaign email templates? |
Yes, I'm using the |
Are you able to test locally? Adding this one line should hopefully fix it, which we will add in the next release.
|
It does reflect in |
Your translated text is in the email template, correct? That is rendered just a few lines down...
|
Correct. It also runs through an mjml filter from superbig's plugin, but that should be irrelevant. |
Ok I'll do a local test and see what results I get. |
Just tested locally and it is working fine for me with the change I suggested applied. Can you double check your site's language is set to |
Resolved as of version 1.5.8 |
I've looked through the source and found reference to the current site being set in the getBody() method when generating a view for the email. It seems though that the correct language is not being set. Only if I change the CP language the correct language file is applied.
Is this just in my case or should the correct language be set based on the primary site?
The text was updated successfully, but these errors were encountered: