Open LeonidSokushev opened 6 years ago
Now including email header/footer is based on templates engine, which can only process current language on site only, so current structure don't allow to switch language dynamically or it's very resource intensive.
If "person A" (with German language) performs some action which calls email sending to "person B"(Chinese) via email templates system then "person B" gets a letter with the proper localized body (on Chinese) but with header / footer on German. Language keys from templates/base/_email_footer.html react on sender's language settings. Need to correct this for using the recipient data.