
dye4h (dye4h) asked a question.
I am trying to update the message on the Okta Sign-in Widget for English and Spanish language. For this, I have used the below code on the Custom Domain Login Page source code.
var config = OktaUtil.getSignInWidgetConfig();
if (config.i18n.en){
config.i18n.en["oie.select.authenticators.enroll.subtitle.custom"] = "Security methods help protect your account by ensuring only you have access."
}
if (config.i18n.es) {
config.i18n.es["oie.select.authenticators.enroll.subtitle.custom"] = "Los métodos de seguridad ayudan a proteger su cuenta garantizando que solo usted tenga acceso."
}
After saving the above code and publish, when I try to run the use it gives me the below error on UI.
L10N_ERROR[oie.select.authenticators.enroll.subtitle.custom]
Please help on this.

Hi @dye4h (dye4h) , Thank you for reaching out to the Okta Community!
Based on the documentation , you might have to try something like this:
i18n: {
'en': {
'oie.select.authenticators.enroll.subtitle.custom': 'Security methods help protect your account by ensuring only you have access.'
},
'es': {
'oie.select.authenticators.enroll.subtitle.custom': 'Los métodos de seguridad ayudan a proteger su cuenta garantizando que solo usted tenga acceso.'
}
}
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--
Ask Us Anything thru 9/3 Okta’s New MFA Requirement for Admin Console Access