I have successfully been able to localize the text of all elements in our B2C custom policy files, with the exception of the 'show password' / password toggler labels, which stubbornly refuse to change from their default values.
When using F12 I can examine the code for the page for both the Password and the Password Toggler labels:
<label for="password">#Password</label>
...
<label for="passwordtoggler">show password</label>
They both have the same format, therefore I would expect to be able to localize these both in the same way in the custom policy file.
I can localize the Password label using:
<LocalizedString ElementType="ClaimType" ElementId="password" StringId="DisplayName">#Password</LocalizedString>
However if I try to do the same for the password toggler element:
<LocalizedString ElementType="ClaimType" ElementId="passwordtoggler" StringId="DisplayName">#Show Password</LocalizedString>
Then this does not work, and still just shows the default text of 'show password', and not '#Show Password'
Has anyone been able to localize this label?