Email language randomly switches between Japanese and English under identical co
-
Hello,
I’m currently using WordPress 6.8.1 with Easy Digital Downloads version 3.4.0, and my site language is set to Japanese.
Under the exact same conditions—same user (admin), same product, same workflow—I’m seeing that the emails sent by EDD (such as
Purchase ReceiptandNew download purchase) are sometimes in Japanese and sometimes in English.All plugins, themes, and translation files are up to date. Nothing has changed between these tests.
This kind of behavior—where email language randomly switches despite identical conditions—does not seem like expected or reasonable behavior.
Could it be that the locale is not properly initialized at the time the email is generated, and that EDD is sending emails without explicitly callingswitch_to_locale()?From what I can tell, this might allow
get_locale()orget_user_locale()to return inconsistent results depending on the execution context.Could you please confirm whether this is a known issue, or if there’s any protection in place to ensure consistent localization during email sending?
Thank you.
The topic ‘Email language randomly switches between Japanese and English under identical co’ is closed to new replies.