Localization of 'UserMessageIfWrongCodeEntered' not working

Viewed 58

I'm having problem locating the correct key for an error messages I want to localize to another language when using a custom policy.

The message is when the user has entered the wrong TOTP-code. The english text is "Wrong code entered, please try again.". From this page https://learn.microsoft.com/en-us/azure/active-directory-b2c/localization-string-ids it seems as I have to edit the errormessage with StringId UserMessageIfWrongCodeEntered, and I have done so in the localizedresource with Id api.selfasserted.totp.[lang] with no success.

I also tried to look for the error message in a user flow. I found the message with the same stringId, but after changing the string there as well, the error message was still displayed in english. Which made we wonder if there is some kind of bug with this particular message?

Have anyone managed to successfully localize this error message?

Tried doing this:

  <LocalizedResources Id="api.selfasserted.totp.sv">
    <LocalizedStrings>
      <LocalizedString ElementType="DisplayControl" ElementId="authenticatorAppIconControl" StringId="title_text">Ladda ner Microsoft Authenticator med nedladdningslänkarna för iOS och Android eller använd en annan valfri autentiserings-app.</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="authenticatorAppIconControl" StringId="DN">Använd någon av metoderna nedan för att fortsätta efter att du har laddat ner autentiserings-appen.</LocalizedString>
      <LocalizedString ElementType="ClaimType" ElementId="QrCodeScanInstruction" StringId="DisplayName">Använd någon av metoderna nedan för att fortsätta efter att du har laddat ner autentiserings-appen.</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="title_text">Scanna QR-koden</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="info_msg">Ladda ner Microsoft Authenticator eller använd en annan valfri autentiserings-app.</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="link_text">Kan inte scanna? Klicka här</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="title_text">Skriv in uppgifterna manuellt</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="account_name">Kontonamn:</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="display_prefix">Secret</LocalizedString>
      <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="collapse_text">Har du fortfarande problem?</LocalizedString>

      <!-- Verification -->
      <LocalizedString ElementType="ClaimType" ElementId="QrCodeVerifyInstruction" StringId="DisplayName">Skriv in verifieringskoden från autentiserings-appen.</LocalizedString>
      <LocalizedString ElementType="ClaimType" ElementId="otpCode" StringId="DisplayName">Skriv in din kod.</LocalizedString>
      <LocalizedString ElementType="UxElement" StringId="button_continue">Verifiera</LocalizedString>
      <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfWrongCodeEntered">Koden är felaktig, försök igen.</LocalizedString>
    </LocalizedStrings>
  </LocalizedResources>

All other strings other than UserMessageIfWrongCodeEntered works fine.

0 Answers
Related