Azue B2C capitalization error in languages with non english capitalization

Gabriel Schneider 21 Reputation points
2022-03-08T17:15:38.217+00:00

We've found a problem in the translation of azure b2c (in this case German). The sign-in-name title (the email address) seems to be always in lowercase.
It's written like "E-Mail-Adresse" in german but it will be shown as "e-mail-adresse". This problem is really bothering our customer.
It's correctly capitalized in the localization data.

And it is correctly written in our localization XML (we are using a custom policy now).

Image with the wrong capitalization for reference:

181136-image.png

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,454 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Accepted answer
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2022-05-25T21:10:31.3+00:00

    Hi @Gabriel Schneider , by design custom policies print out the values in lowercase. At the moment you could use JavaScript to change the text in the correct case or another way would replacing the placeholder in the policy with the actual value you want to see.

    <LocalizedString ElementType="UxElement" StringId="local_intro_generic">Mit E-Mail-Adresse anmelden</LocalizedString>  
    

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Thank you,
    James

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Gabriel Schneider 21 Reputation points
    2022-07-12T08:29:24.637+00:00

    For the people from the future:

    The JS-code solution i used was the following:

    let introElement = document.getElementsByClassName("intro")[0];  
    introElement.children[0].textContent = CONTENT.local_intro_generic.replace("{0}", SA_FIELDS.AttributeFields[0].DN);  
    

    The way it works:
    We use the value of the AttributeFields (with the correct capitalization from the localization files), the content string from CONTENT, and provide that value to a custom function (similar to the function that is used in a handlebars template - without the toLowerCase function).

    0 comments No comments

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.