Hi @Ashutosh Rath • Thank you for reaching out.
Looks like the problem is not with the page layout version 2.1.10
as the translation works correctly with the same page layout version in built-in user flows. The problem occurs only with Custom Policy and using the page layout version lower than 2.1.10
doesn't help either. I will engage the product team to address this issue but it may take a long time to roll out the fix.
In the meantime, as a workaround, you can localize the strings in the languages that you want to use. If you are using the latest Starter Pack, you need to update the TrustFrameworkLocalization.xml file as mentioned below:
- Update the api.localaccountsignup ContentDefinition with the language that you want to use:
<ContentDefinition Id="api.localaccountsignup"> <LocalizedResourcesReferences MergeBehavior="Prepend"> <LocalizedResourcesReference Language="en" LocalizedResourcesReferenceId="api.localaccountsignup.en" /> <LocalizedResourcesReference Language="hi" LocalizedResourcesReferenceId="api.localaccountsignup.hi" /> <!-- Add more languages here --> </LocalizedResourcesReferences> </ContentDefinition>
- Add the language that you want to use as SupportedLanguage.
<Localization Enabled="true"> <SupportedLanguages DefaultLanguage="en" MergeBehavior="Prepend"> <SupportedLanguage>en</SupportedLanguage> <SupportedLanguage>hi</SupportedLanguage> </SupportedLanguages>
- Define the localized strings that you want.
<!--Local account sign-up page Hindi--> <LocalizedResources Id="api.localaccountsignup.hi"> <LocalizedStrings> <LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="DisplayName">नया पासवर्ड</LocalizedString> <LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="DisplayName">नए पासवर्ड की पुष्टि करें </LocalizedString> <LocalizedString ElementType="ClaimType" ElementId="givenName" StringId="DisplayName">पहला नाम</LocalizedString> <LocalizedString ElementType="ClaimType" ElementId="displayName" StringId="DisplayName">प्रदर्शित होने वाला नाम</LocalizedString> <LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">ईमेल पता</LocalizedString> <LocalizedString ElementType="ClaimType" ElementId="surname" StringId="DisplayName">उप नाम</LocalizedString> </LocalizedStrings> </LocalizedResources>
Once the above steps are done, you will get the specified fields translated when used with ui_locales=hi
parameter, as shown below:
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.