I am using parse-server-api-mail-adapter for mailgun emails (one of the mailgun ones are using an outdated lib now and dont work and the other one im not sure why it doesnt work).
I allow users to change language on the fly during registration and pre-login - is there any way to localise these emails from a parameter provided an the UI level or maybe some way to programatically send a specific template via cloud code with the required system information like reset link etc ?
I don’t understand how is localeCallback supposed to get the locale of the user? Do I write a parse query in the callback to get it from db? And when I get it how the adapter is supposed to use it? I can’t see any locale-specific logic.
Also, I tried to make the localeCallback return a locale that I have (tr-TR), for testing purposes, but it didn’t work, I still get English versions, even though I’ve structured my files as described in the docs.
Can you please explain to me like I’m 5 what needs to be done?
Ok, my problem was that I was adding the localeCallback to the adapter config, when it should be in the specific emails template config. Thanks for the example.