Localization in Ducth in B2C custom Policies

Anu Garg 37 Reputation points
2022-04-22T08:29:52.717+00:00

Hi Team,

We want to provide localization in English & Dutch language.
I am looking for Localization strings in dutch language.
Is there any existing predefined localization settings for all like api.signuporsignin.nl / api.selfasserted.nl etc.

Thanks in advance.

Regards,
Anu

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,631 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,301 Reputation points
    2022-04-22T09:44:46.037+00:00

    Hi @Anu Garg • Thank you for reaching out.

    The localization resources such as api.signuporsignin.nl or api.selfasserted.nl are not present by default in the custom policies. By default, you will only find api.signuporsignin. Ideally, if you append the Authentication Request or Run Now endpoint of your signup/sign custom policy with the &ui_locales=nl parameter, you should get the strings localized in Dutch language automatically.

    You should add api.signuporsignin.nl or other localization resources under content definition IDs if you are not happy with the default translation/localization of some strings and you want to customize the strings as per your requirement. If that is the case, you can follow the below steps:

    1. If you are using the latest starter pack, open the Localizations.xml file and make sure localization is enabled by looking at the below tag:
      <Localization Enabled="true">  
      
      1. Add nl as the supported language as shown below: <SupportedLanguages DefaultLanguage="en" MergeBehavior="Append">
        <SupportedLanguage>en</SupportedLanguage>
        <SupportedLanguage>nl</SupportedLanguage>
        </SupportedLanguages>
      2. Add LocalizedResourcesReference for nl language. <ContentDefinition Id="api.signuporsignin">
        <LocalizedResourcesReferences MergeBehavior="Prepend">
        <LocalizedResourcesReference Language="en" LocalizedResourcesReferenceId="api.signuporsignin.en" />
        <LocalizedResourcesReference Language="nl" LocalizedResourcesReferenceId="api.signuporsignin.nl" />
        <!-- Add more languages here -->
        </LocalizedResourcesReferences>
        </ContentDefinition>
      3. Finally, add the localization strings to LocalizedResources Id="api.signuporsignin.nl" as shown below: <LocalizedResources Id="api.signuporsignin.nl">
        <LocalizedCollections>
        <!-- More localized collections... -->
        </LocalizedCollections>
        <LocalizedStrings>
        <LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Email Address</LocalizedString>
        <LocalizedString ElementType="UxElement" StringId="heading">Sign in</LocalizedString>
        <LocalizedString ElementType="ClaimsProvider" StringId="FacebookExchange">Facebook</LocalizedString>
        <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidPassword">Your password is incorrect.</LocalizedString>
        <!-- More localized strings... -->
        </LocalizedStrings>
        </LocalizedResources>

    An extensive list of all string IDs that are available for localization is documented here: Localization string IDs


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


0 additional answers

Sort by: Most helpful