Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 4 replies, has 0 voices.

Last updated by Itamar 2 days, 14 hours ago.

Assisted by: Itamar.

Author Posts
August 7, 2025 at 7:34 am #17301519

thomasD-100

Background of the issue:
I am trying to get an email for "new customer order" in English when the customer orders on the English site, and a German one when the customer orders on the German site.

Symptoms:
I expected to see an English email or a German email, but instead, I got a mixed email with English and German language.

Questions:
How can I ensure that the order confirmation emails are sent in the correct language based on the site language?
In the photo I uploaded, the customer from the United States placed the order on the English version of the website, and we received an email with mixed German/English text.

August 7, 2025 at 8:51 am #17301740

thomasD-100

I tried to follow the instructions in the documentation you sent me but nothing changed.

August 10, 2025 at 4:39 pm #17307867

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'll continue to help you with this issue.

1. Are you referring to emails that are being sent to the site administrator?

2. If so, which admin language has the administrator user set in his profile (Users -> Profile)? Is it English or German?

3. Do you use any plugins that extend WooCommerce's regular emails?

Regards,
Itamar.

August 11, 2025 at 8:01 am #17308273

thomasD-100

Hi again!

Yeah, it's the mail sent to the side administrator.
The main language is German and we use Kadence Woocommerce Email Designer in order to customize the emails.

August 11, 2025 at 10:26 am #17309160

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks for your answers.

To "force" emails sent to admin users to be in the language set for the user in Users -> Profile, we have two hooks you can use. Here are the links:

https://wpml.org/wpml-hook/wpml_switch_language_for_email/
https://wpml.org/wpml-hook/wpml_restore_language_from_email/

The following guide provides further explanation on how to implement this.

https://wpml.org/documentation/support/sending-emails-with-wpml/

I hope that this will help you achieve what you need.
Please let me know if you have any further questions.

Regards,
Itamar.