Hi Erik,
This is not what’s happening. I went to the menu “Self-service Registration” and added locale and preferred language (I tried only with locale as well). I see that they display in the form, There’s also a French translation for the email.
I’m pasting below the requests that happen and their payloads
GET: /api/v1/registration/form
{
"policyId": "xxxx",
"lastUpdate": 1687881396000,
"profileSchema": {
"properties": {
"firstName": {
"type": "string",
"title": "First name",
"minLength": 1,
"maxLength": 50
},
"lastName": {
"type": "string",
"title": "Last name",
"minLength": 1,
"maxLength": 50
},
"preferredLanguage": {
"type": "language_code",
"title": "Preferred language"
},
"password": {
"type": "string",
"title": "Password",
"allOf": [
{
"description": "At least 8 character(s)",
"minLength": 8
},
{
"description": "At least 1 number(s)",
"format": "/[\\d]+/"
},
{
"description": "At least 1 lowercase letter(s)",
"format": "/[a-z]+/"
},
{
"description": "At least 1 uppercase letter(s)",
"format": "/[A-Z]+/"
},
{
"description": "Does not contain part of username",
"format": "/^[#/userName]/"
}
],
"default": "Password"
},
"locale": {
"type": "locale",
"title": "Locale"
},
"email": {
"type": "email",
"title": "Email",
"format": "email",
"maxLength": 100,
"default": "Email"
}
},
"required": [
"email",
"password",
"firstName",
"lastName",
"locale",
"preferredLanguage"
],
"fieldOrder": [
"email",
"password",
"firstName",
"lastName",
"locale",
"preferredLanguage"
]
}
}
POST: /api/v1/registration/{policyId}/register
{
"userProfile":{
"email":"andre.luiz@email.com",
"password":"xxxxxx",
"firstName":"Andre",
"lastName":"Luiz",
"locale":"fr_CA",
"preferredLanguage":"fr"
}
}
I still receive the e-mail in English. This used to work fine a while ago, but it stopped working. I have not changed any settings related to the language. Also I realized that it’s not being saved in the user profile.
In the self-registration I have this option checked out: User must verify email address to be activated.
And The template that has french is “Registration - Verification” as mentioned in the page itself:
If this option is selected, Okta sends the “Registration - Activation” email. Otherwise, Okta sends the “Registration - Verification” email. The content of these emails is determined by email templates.
And I know it’s actually sending this e-mail because I’ve made changes to double check and the changes I made come to my e-mail. But I only receive the English version always.
Is there any other setting I should check? Is there somewhere I should set a list of supported languages?
Thanks