How to switch email language to client language?
-
Please correct me when I am mistaken. My understanding is that WooCommerce does only translate the emails to the WordPress default language. This means when there is a second language in play that emails will never be send out in that other language unless the default language is changed before.
I am wondering now what is the logic in that? What has the site default language to do with the client in the context of a multilingual shop?
Is there a hook that could be used to dynamically set the email language to the client’s language? Why isn’t that standard procedure in a globalized economy?
Interesting that a product like WooCommerce does not build in this functionality and making work-arounds like https://gist.github.com/dartrax/85b3ab77b8210e92cc50e1b68de83c73 necessary.
- The topic ‘How to switch email language to client language?’ is closed to new replies.