I have to localize a sign-up, and a password reset custom policy in German, and I have a few questions regarding that:
- There seem to be no default translation for the "Missing required element: {0}" error, which shows when I for example enter a whitespace in my Verification Code textbox, and click "Verify":
I have then added this line to my localization file in order to add my own text:
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMissingRequiredElement">Fehlendes erforderliches Element: {0}</LocalizedString>
This works somewhat, however, it ends up showing me the this error message, where you can see the placeholder ({0}) is not filled:
According to the Microsoft documentation, the {0} placeholder should be the right one to use here.
- Similarly, I am trying to add custom texts to the errors around the input fields, e.g.
and for Verification Code:
There's a business requirement that e.g. "Email" should be called "E-Mail-Adresse" in the flow, but when using the LocalizedString:
<LocalizedString ElementType="UxElement" StringId="required_field_descriptive">{0} ist erforderlich.</LocalizedString>
the placeholder seems to be taking the type of the input field rather than the DisplayName of the ClaimType, as otherwise stated in the documentation. Can I customize the texts being inserted into the placeholders, so that I can for example show "E-Mail-Adresse ist erforderlich." and "Verification code ist erforderlich.", respectively?
I am using selfasserted:2.1.19 pages for both flows.