Hey Manuel,
Can you please help me understand how to use locales? I can’t figure it out for hours.
Here is my setup:
emailAdapter: {
module: "parse-server-api-mail-adapter",
options: {
sender: process.env.EMAIL_FROM_ADDRESS,
templates: emailTemplates,
localeCallback: async () => {
return "tr-TR";
},
apiCallback: async ({ payload, locale }) => {
const awsSesPayload = ApiPayloadConverter.awsSes(payload);
const command = new SendEmailCommand(awsSesPayload);
await sesClient.send(command);
},
},
},
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?
Thank you