Hi @Claudio , have you tried changing the resource json? This seems to be the easiest solution. If this doesn't work let me know and I can assist you further.
Best,
James
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am having issues with the localization of my Azure AD B2C authentication screens.
I have set up phone signup and social identity providers. I have also enabled the "Email Address" built-in attribute, and I have added a "Username" custom attribute.
When I am redirected to the main screen in Spanish (with ui_locales set to "es"), all works well:
But when I then visit the "Phone Registration" link, I see the following:
Here, the "Email Address" attribute I've added is not translated. I have tried adding these missing translations as overrides to the "Phone signup page" in the "Languages" section (as I did for the "Username", which is correctly translated into "Nombre de Usuario"), but they are rejected with errors such as "The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: but_change_claims is not a valid override.", etc.
The country list is also not translated (should be "España", not "Spain"):
Lastly, when I visit the link to change my phone number, I have the "Country" dropdown not translated (should be "País", not "Country"):
Please advise. Many thanks!
Hi @Claudio , have you tried changing the resource json? This seems to be the easiest solution. If this doesn't work let me know and I can assist you further.
Best,
James
Hi @James Hamil , yes I have. Under "Phone signUppage" I uploaded an override with the following content:
{
"LocalizedStrings": [
{
"ElementType": "ClaimType",
"ElementId": "extension_Username",
"StringId": "DisplayName",
"Override": true,
"Value": "Nombre de usuario"
},
{
"ElementType": "ClaimType",
"ElementId": "extension_Username",
"StringId": "UserHelpText",
"Override": true,
"Value": "El nombre de usuario para identificarse en la aplicación"
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "but_change_claims",
"Override": true,
"Value": "Cambiar correo electrónico"
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "but_send_code",
"Override": true,
"Value": "Enviar código de verificación"
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "but_send_new_code",
"Override": true,
"Value": "Enviar código nuevo"
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "but_verify_code",
"Override": true,
"Value": "Verificar código"
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "failure_send_code_msg",
"Override": true,
"Value": "Tenemos problemas para comprobar la dirección de correo electrónico. Escriba una dirección de correo electrónico válida y vuelva a intentarlo."
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "failure_verify_code_msg",
"Override": true,
"Value": "Tenemos problemas para verificar la dirección de correo electrónico. Vuelva a intentarlo."
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "intro_msg",
"Override": true,
"Value": "La comprobación es obligatoria. Haga clic en el botón Enviar."
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "success_send_code_msg",
"Override": true,
"Value": "Se ha enviado el código de verificación a su Bandeja de entrada. Cópielo en el siguiente cuadro de entrada."
},
{
"ElementType": "DisplayControl",
"ElementId": "emailVerificationControl",
"StringId": "success_verify_code_msg",
"Override": true,
"Value": "Dirección de correo electrónico verificada. Puede continuar."
}
]
}
It gave me the following errors:
9 Validation errors found in upload overrides for api.phoneSignUp. Please ensure that your uploaded resource matches the template: The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: but_change_claims is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: but_send_code is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: but_send_new_code is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: but_verify_code is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: failure_send_code_msg is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: failure_verify_code_msg is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: intro_msg is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: success_send_code_msg is not a valid override.The localized string with ElementType: DisplayControl, ElementId: emailVerificationControl and StringId: success_verify_code_msg is not a valid override.
Only the "Username" overrides were accepted. Please note that the "Email element" I was trying to override, I enabled it in the" user attributes" of my user flow. Perhaps that is the reason, as this element is not part of the default localization resource for the view. Then the question would be, how to translate those "additional" attributes.
Thanks!