Azure AD B2C 无法本地化 'The password must have at least 3 of the following:'
Azure AD B2C unable to localize 'The password must have at least 3 of the following:'
我一直在为自定义翻译提取 Azure AD B2C 字符串,但一直难以找到字符串的正确标识符 'The password must have at least 3 of the following:'。
我正在使用用户流策略类型。
注册并登录流程类型。
密码复杂性:强。
在 Azure 门户中,我已经下载了自定义语言 'Change password page' 的模板。
我已经修改了文件进行测试,然后上传了文件。
大多数情况下这是有效的(在找到丢失的条目并创建它们之后)。
据我所知,缺少的元素应该是:
{
"ElementType": "PredicateValidation",
"ElementId": "StrongPassword",
"StringId": "CharacterClasses",
"Override": true,
"Value": "hy:The password must have at least 3 of the following:"
}
但是,上传这个的时候,返回验证错误,上传失败。
1 Validation errors found in upload overrides for api.selfasserted.localaccountpasswordchange2.1. Please ensure that your uploaded resource matches the template: The localized string with ElementType: PredicateValidation, ElementId: StrongPassword and StringId: CharacterClasses is not a valid override.
Change password page showing untranslated string
更新:
尝试:
{
"ElementType": "InputValidation",
"ElementId": "CustomPassword",
"StringId": "CharacterClasses",
"Override": true,
"Value": "The password must have at least 3 of the following:"
}
此上传。
我一直在为自定义翻译提取 Azure AD B2C 字符串,但一直难以找到字符串的正确标识符 'The password must have at least 3 of the following:'。
我正在使用用户流策略类型。 注册并登录流程类型。 密码复杂性:强。
在 Azure 门户中,我已经下载了自定义语言 'Change password page' 的模板。 我已经修改了文件进行测试,然后上传了文件。
大多数情况下这是有效的(在找到丢失的条目并创建它们之后)。
据我所知,缺少的元素应该是:
{
"ElementType": "PredicateValidation",
"ElementId": "StrongPassword",
"StringId": "CharacterClasses",
"Override": true,
"Value": "hy:The password must have at least 3 of the following:"
}
但是,上传这个的时候,返回验证错误,上传失败。
1 Validation errors found in upload overrides for api.selfasserted.localaccountpasswordchange2.1. Please ensure that your uploaded resource matches the template: The localized string with ElementType: PredicateValidation, ElementId: StrongPassword and StringId: CharacterClasses is not a valid override.
Change password page showing untranslated string
更新:
尝试:
{
"ElementType": "InputValidation",
"ElementId": "CustomPassword",
"StringId": "CharacterClasses",
"Override": true,
"Value": "The password must have at least 3 of the following:"
}
此上传。