I'm running a multilingual site, and I want the emails sent to the user to be in their language. The scheme I already have is the following:
- The website determines the user's country through their IP.
- The website redirects the user to the site's version of the language of their country (eg. if the IP detected is from France, then it redirects the user to a WPML french version of the site).
The problem is that I want to have emails translated as well, based on the IP of the user. (eg. the user registers through https://mysite/fr/signup, then the email sent to him for completing his registration should be in French.)
I have WPML and Loco Translate activated for translation, along with Geo Redirect to redirect users to various site's languages.
Is this achievable? and how?