How to translate help texts and error messages in Azure AD B2C phone sign-up/sign-in?

Veli-Jussi Raitila 386 Reputation points
2024-09-20T12:01:26.48+00:00

I have trouble using the localization feature for Azure AD B2C as some texts seem not to be translatable.

There's this weird "pledge" in the documentation here https://learn.microsoft.com/en-us/azure/active-directory-b2c/language-customization?pivots=b2c-user-flow#up-to-date-translations, which promises up-to-date translations from Microsoft. However, this is obviously not true. But more importantly, there are places where even providing one's own translations - at least for built-in flows - is not possible.

STEPS TO REPRODUCE

  1. Configure a built-in phone sign-in/sign-up flow for local accounts (SMS only, no e-mail recovery)
  2. Go to the user sign-up page (sign-in page works as expected)
  3. Type some letters in the phone number input field and see "The value entered needs to be a phone number." error message in English
  4. Attempt to change the error message

EXPECTED RESULTS

I am able to change/translate the error message.

ACTUAL RESULTS

No apparent ability to translate the error message. The default localized string

{
  "ElementType": "Predicate",
  "ElementId": "internationalOrNationalPhoneNumber",
  "StringId": "HelpText",
  "Override": true,
  "Value": "The value entered needs to be a phone number."
}

used in local account sign-up and unified sign-up/sign-in does not seem to apply for phone sign-in/sign-up pages.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,892 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 24,841 Reputation points Microsoft Employee
    2024-10-01T16:14:33.3133333+00:00

    Hi @Veli-Jussi Raitila , not all strings are customizable unfortunately. The strings that are not customizable are part of the built-in user flows and are not exposed for customization. The error message you mentioned, "The value entered needs to be a phone number," is one of those strings that cannot be customized.

    "success_verify_code_msg" is a valid ID so it should work. Make sure your page layout version is >= 2.1.0 and that you meet the VerificationControl requirements.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.