Currently I have setup strapi Email Templates for Reset Password and Email Confirmation. My website users are both in French and English. Based on the preferred language of the user (set in the strapi db) I want to send the email template in that language. Is there any way to achieve this in strapi? Or using any plugin with strapi?
Thanks!
![image](https://d38xoolefqxt5u.cloudfront.net/original/2X/d/d7abe759fc82a983e92087c779a222560f31a48a.png)
@DMehaffy if you can answer this please ![:slightly_smiling_face: :slightly_smiling_face:](https://forum.strapi.io/images/emoji/twitter/slightly_smiling_face.png?v=10)
Currently I don’t believe so
at least not without major customization to those controllers/routes that control that.
@sam-pires might be good to add as a feature request?
1 Like
@DMehaffy
What other options are there? How do other international customers who want to support a user experience in two languages manage this?
I don’t believe I’ve actually seen the password reset question come up for multi-language yet (until now)
Just wanted to share that I have achieved this by overriding the default controllers provided by node_modules\strapi-plugin-users-permissions\controllers\Auth.js
.
I copied the file to extensions\users-permissions\controllers\Auth.js
. Within each controller (forgotPassword
, register
, sendEmailConfirmation
) I fetched the Employee
(my collection in strapi) using email
and check the employee’s preferred language. Based on that I send the customized email content (En or Fr).
Thank you team for your response!
1 Like
Nice ! I just wanted to share that I have the same requirement and currently I am doing something very similar to what you described @sheikhahsan I believe that would be a nice feature to add in the future
1 Like