Can not send translated email template

Created on 9 October 2017, almost 7 years ago
Updated 1 February 2024, 8 months ago

I have a multilingual-site with English and Japanese.So if a Japanese user filling the contact form, I want to send a Japanese email template to the submitter, not the default English template.

After adding "Contact email" into multilingual support on admin/config/regional/content-language page, and I also translate the contact email template into Japanese smoothly. But when I submit the contact form as a Japanese user, I still received email with English template.

So I check the code in src/ContactEmailer.php, within the method sendEmails(), I can not find any code that do get translated template, so I created a patch to do that feature, hope to be reviewed, thanks.

✨ Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡³China Ken Zhang

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024