Okta Widget not sending the Registration Activation e-mail in the right language

Hi,
I’m using the Okta Widget in my React App and it’s working, except that the e-mail the user receives doesn’t come in the right Language.

I set the language of the widget via the configuration (language property) and I see that it’s changing the language properly because all the text in the interface changes too. I also did the test creating the user via the widget that lives in the Okta Hostaed page and the same thing happen.

This is my use case:

  • In the customization of my brand I created the Registration Activation email in English and French (and I know that’s the e-mail that has been sent to me). The default language of the email is english.
  • I use a browser that has only French as language then I go to the Okta hosted page and see all the interfaces in French. I create my account in the okta hosted page
  • I get the e-mail in english

What do I need to do so that the e-mail the user receives matches the language of the widget? Is it some setting inside the okta admin that I should enable?

Thanks

Hello,

This will be based off of the Locale value in the users Okta profile.
You can allow them to set it when signing up.

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

For those having the same issue this is how you fix it:

  • Go to the profile editor
  • Set the properties to Read-Write

This was working fine and when brands was enabled I guess all the properties went to a default of read-Only

Thanks