本地化字符串 IDLocalization string IDs
备注
在 Azure Active Directory B2C 中,custom policies
主要用于解决复杂方案。In Azure Active Directory B2C, custom policies
are designed primarily to address complex scenarios. 大多数情况下,建议使用内置的用户流。For most scenarios, we recommend that you use built-in user flows.
Localization 元素使你能够在用户旅程的策略中支持多个区域设置或语言。The Localization element enables you to support multiple locales or languages in the policy for the user journeys. 本文提供了可在策略中使用的本地化 ID 列表。This article provides the list of localization IDs that you can use in your policy. 若要熟悉 UI 本地化,请参阅本地化。To get familiar with UI localization, see Localization.
注册或登录页面元素Sign-up or sign-in page elements
以下 ID 用于 ID 为 api.signuporsignin
的内容定义和自断言技术配置文件。The following IDs are used for a content definition with an ID of api.signuporsignin
, and self-asserted technical profile.
IDID | 默认值Default value | 页面布局版本Page Layout Version | |
---|---|---|---|
forgotpassword_linkforgotpassword_link | 忘记密码了?Forgot your password? | All |
|
createaccount_introcreateaccount_intro | 没有帐户?Don't have an account? | All |
|
button_signinbutton_signin | 登录Sign in | All |
|
social_introsocial_intro | 使用社交帐户登录Sign in with your social account | All |
|
remember_meremember_me | 使我保持登录状态。Keep me signed in. | All |
|
unknown_errorunknown_error | 登录时遇到问题。We are having trouble signing you in. 请稍后重试。Please try again later. | All |
|
divider_titledivider_title | OROR | All |
|
local_intro_emaillocal_intro_email | 使用现有帐户登录Sign in with your existing account | < 2.0.0 |
|
logonIdentifier_emaillogonIdentifier_email | 电子邮件地址Email Address | < 2.0.0 |
|
requiredField_emailrequiredField_email | 请输入电子邮件地址Please enter your email | < 2.0.0 |
|
invalid_emailinvalid_email | 请输入有效的电子邮件地址Please enter a valid email address | < 2.0.0 |
|
email_patternemail_pattern | ^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$ | < 2.0.0 ^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$ |
< 2.0.0 |
local_intro_usernamelocal_intro_username | 使用用户名登录Sign in with your user name | < 2.0.0 |
|
logonIdentifier_usernamelogonIdentifier_username | 用户名Username | < 2.0.0 |
|
requiredField_usernamerequiredField_username | 请输入用户名Please enter your user name | < 2.0.0 |
|
passwordpassword | 密码Password | < 2.0.0 |
|
requiredField_passwordrequiredField_password | 请输入密码Please enter your password | < 2.0.0 |
|
createaccount_linkcreateaccount_link | 立即注册Sign up now | < 2.0.0 |
|
cancel_messagecancel_message | 用户忘记了密码The user has forgotten their password | < 2.0.0 |
|
invalid_passwordinvalid_password | 你输入的密码格式不正确。The password you entered is not in the expected format. | < 2.0.0 |
|
createaccount_one_linkcreateaccount_one_link | 立即注册Sign up now | >= 2.0.0 |
|
createaccount_two_linkscreateaccount_two_links | 使用 {0} 或 {1} 注册Sign up with {0} or {1} | >= 2.0.0 |
|
createaccount_three_linkscreateaccount_three_links | 使用 {0}、{1} 或 {2} 注册Sign up with {0}, {1}, or {2} | >= 2.0.0 |
|
local_intro_genericlocal_intro_generic | 使用 {0} 登录Sign in with your {0} | >= 2.1.0 |
|
requiredField_genericrequiredField_generic | 请输入你的 {0}Please enter your {0} | >= 2.1.0 |
|
invalid_genericinvalid_generic | 请输入有效的 {0}Please enter a valid {0} | >= 2.1.1 |
|
headingheading | 登录Sign in | >= 2.1.1 |
备注
- 将自动使用
ClaimType
的DisplayName
值填充 {0} 之类的占位符。Placeholders like {0} will be filled automatically with theDisplayName
value ofClaimType
. - 若要了解如何本地化
ClaimType
,请参阅注册或登录示例。To learn how to localizeClaimType
, see Sign-up or sign-in example.
下面的示例演示如何在注册或登录页中使用某些用户界面元素:The following example shows the use of some of the user interface elements in the sign-up or sign-in page:
注册或登录标识提供者Sign-up or sign-in identity providers
标识提供者的 ID 在用户旅程 ClaimsExchange 元素中配置。The ID of the identity providers is configured in the user journey ClaimsExchange element. 若要本地化标识提供者的标题,请将 ElementType 设置为 ClaimsProvider
,同时将 StringId 设置为 ClaimsExchange
的 ID。To localize the title of the identity provider, the ElementType is set to ClaimsProvider
, while the StringId is set to the ID of the ClaimsExchange
.
<OrchestrationStep Order="2" Type="ClaimsExchange">
<Preconditions>
<Precondition Type="ClaimsExist" ExecuteActionsIf="true">
<Value>objectId</Value>
<Action>SkipThisOrchestrationStep</Action>
</Precondition>
</Preconditions>
<ClaimsExchanges>
<ClaimsExchange Id="SignUpWithLogonEmailExchange" TechnicalProfileReferenceId="LocalAccount" />
</ClaimsExchanges>
</OrchestrationStep>
注册或登录错误消息Sign-up or sign-in error messages
IDID | 默认值Default value |
---|---|
UserMessageIfInvalidPasswordUserMessageIfInvalidPassword | 密码不正确。Your password is incorrect. |
UserMessageIfPasswordExpiredUserMessageIfPasswordExpired | 你的密码已过期。Your password has expired. |
UserMessageIfClaimsPrincipalDoesNotExistUserMessageIfClaimsPrincipalDoesNotExist | 似乎找不到你的帐户。We can't seem to find your account. |
UserMessageIfOldPasswordUsedUserMessageIfOldPasswordUsed | 你可能使用的是旧密码。Looks like you used an old password. |
DefaultMessageDefaultMessage | 无效的用户名或密码。Invalid username or password. |
UserMessageIfUserAccountDisabledUserMessageIfUserAccountDisabled | 帐户已锁定。Your account has been locked. 请联系支持人员解除锁定,然后重试。Contact your support person to unlock it, then try again. |
UserMessageIfUserAccountLockedUserMessageIfUserAccountLocked | 帐户暂时锁定以防止未经授权的使用。Your account is temporarily locked to prevent unauthorized use. 请稍后再试。Try again later. |
AADRequestsThrottledAADRequestsThrottled | 目前请求过多。There are too many requests at this moment. 请等待一段时间,然后重试。Please wait for some time and try again. |
注册或登录示例Sign-up or sign-in example
<LocalizedResources Id="api.signuporsignin.en">
<LocalizedStrings>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Email Address</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="heading">Sign in</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="social_intro">Sign in with your social account</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="local_intro_generic">Sign in with your {0}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="requiredField_password">Please enter your password</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="requiredField_generic">Please enter your {0}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="invalid_generic">Please enter a valid {0}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="createaccount_one_link">Sign up now</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="createaccount_two_links">Sign up with {0} or {1}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="createaccount_three_links">Sign up with {0}, {1}, or {2}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="forgotpassword_link">Forgot your password?</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="button_signin">Sign in</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="divider_title">OR</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="unknown_error">We are having trouble signing you in. Please try again later.</LocalizedString>
<!-- Uncomment the remember_me only if the keep me signed in is activated.
<LocalizedString ElementType="UxElement" StringId="remember_me">Keep me signed in</LocalizedString> -->
<LocalizedString ElementType="ClaimsProvider" StringId="FacebookExchange">Facebook</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidPassword">Your password is incorrect.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfPasswordExpired">Your password has expired.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalDoesNotExist">We can't seem to find your account.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfOldPasswordUsed">Looks like you used an old password.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="DefaultMessage">Invalid username or password.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfUserAccountDisabled">Your account has been locked. Contact your support person to unlock it, then try again.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfUserAccountLocked">Your account is temporarily locked to prevent unauthorized use. Try again later.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="AADRequestsThrottled">There are too many requests at this moment. Please wait for some time and try again.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
注册和自断言页用户界面元素Sign-up and self-asserted pages user interface elements
以下 ID 适用于 ID 为 api.localaccountsignup
的内容定义或任何以 api.selfasserted
开头的内容定义,例如 api.selfasserted.profileupdate
和 api.localaccountpasswordreset
,以及自断言技术配置文件。The following are the IDs for a content definition with an ID of api.localaccountsignup
or any content definition that starts with api.selfasserted
, such as api.selfasserted.profileupdate
and api.localaccountpasswordreset
, and self-asserted technical profile.
IDID | 默认值Default value |
---|---|
ver_sentver_sent | 验证码已发送到:Verification code has been sent to: |
ver_but_defaultver_but_default | 默认Default |
cancel_messagecancel_message | 用户已取消输入自断言信息The user has canceled entering self-asserted information |
preloader_altpreloader_alt | 请稍候Please wait |
ver_but_sendver_but_send | 发送验证代码Send verification code |
alert_yesalert_yes | 是Yes |
error_fieldIncorrecterror_fieldIncorrect | 一个或多个字段填写不正确。One or more fields are filled out incorrectly. 请检查条目并重试。Please check your entries and try again. |
yearyear | 年龄Year |
verifying_blurbverifying_blurb | 正在处理你的信息,请稍候。Please wait while we process your information. |
button_cancelbutton_cancel | 取消Cancel |
ver_fail_no_retryver_fail_no_retry | 你进行不正确尝试的次数过多。You've made too many incorrect attempts. 请稍后重试。Please try again later. |
monthmonth | 月份Month |
ver_success_msgver_success_msg | 已验证电子邮件地址。E-mail address verified. 现在可以继续。You can now continue. |
monthsmonths | 一月、二月、三月、四月、五月、六月、七月、八月、九月、十月、十一月、十二月January, February, March, April, May, June, July, August, September, October, November, December |
ver_fail_serverver_fail_server | 我们无法验证你的电子邮件地址。We are having trouble verifying your email address. 请输入有效的电子邮件地址,然后重试。Please enter a valid email address and try again. |
error_requiredFieldMissingerror_requiredFieldMissing | 缺少必填字段。A required field is missing. 请填写所有必填字段,然后重试。Please fill out all required fields and try again. |
initial_introinitial_intro | 请提供以下详细信息。Please provide the following details. |
ver_but_resendver_but_resend | 发送新验证码Send new code |
button_continuebutton_continue | 创建Create |
error_passwordEntryMismatcherror_passwordEntryMismatch | 密码输入字段不一致。The password entry fields do not match. 请在这两个字段中输入相同密码,然后重试。Please enter the same password in both fields and try again. |
ver_incorrect_formatver_incorrect_format | 格式错误。Incorrect format. |
ver_but_editver_but_edit | 更改电子邮件Change e-mail |
ver_but_verifyver_but_verify | 验证验证码Verify code |
alert_noalert_no | 否No |
ver_info_msgver_info_msg | 验证码已发送到收件箱。Verification code has been sent to your inbox. 请将其复制到下面的输入框。Please copy it to the input box below. |
dayday | 日期Day |
ver_fail_throttledver_fail_throttled | 用于验证此电子邮件地址的请求过多。There have been too many requests to verify this email address. 请稍等片刻,然后重试。Please wait a while, then try again. |
helplink_texthelplink_text | 这是什么?What is this? |
ver_fail_retryver_fail_retry | 验证码不正确。That code is incorrect. 请重试。Please try again. |
alert_titlealert_title | 取消输入详细信息Cancel Entering Your Details |
required_fieldrequired_field | 此信息是必需的。This information is required. |
alert_messagealert_message | 确实要取消输入详细信息吗?Are you sure that you want to cancel entering your details? |
ver_intro_msgver_intro_msg | 验证是必需的。Verification is necessary. 请单击“发送”按钮。Please click Send button. |
ver_inputver_input | 验证码Verification code |
注册和自断言页错误消息Sign-up and self-asserted pages error messages
IDID | 默认值Default value |
---|---|
UserMessageIfClaimsPrincipalAlreadyExistsUserMessageIfClaimsPrincipalAlreadyExists | 已存在具有指定 ID 的用户。A user with the specified ID already exists. 请选择其他用户。Please choose a different one. |
UserMessageIfClaimNotVerifiedUserMessageIfClaimNotVerified | 未验证声明: {0}Claim not verified: {0} |
UserMessageIfIncorrectPatternUserMessageIfIncorrectPattern | 模式错误: {0}Incorrect pattern for: {0} |
UserMessageIfMissingRequiredElementUserMessageIfMissingRequiredElement | 缺少必需的元素: {0}Missing required element: {0} |
UserMessageIfValidationErrorUserMessageIfValidationError | 验证错误: {0}Error in validation by: {0} |
UserMessageIfInvalidInputUserMessageIfInvalidInput | {0} 具有无效输入。{0} has invalid input. |
ServiceThrottledServiceThrottled | 目前请求过多。There are too many requests at this moment. 请等待一段时间,然后重试。Please wait for some time and try again. |
下面的示例演示如何在注册页中使用某些用户界面元素:The following example shows the use of some of the user interface elements in the sign-up page:
下面的示例演示在用户单击“发送验证码”按钮后如何在注册页中使用某些用户界面元素:The following example shows the use of some of the user interface elements in the sign-up page, after user clicks on send verification code button:
注册和自断言页示例Sign-up and self-asserted pages example
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Email Address</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="UserHelpText">Email address that can be used to contact you.</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="email" StringId="PatternHelpText">Please enter a valid email address.</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="DisplayName">New Password</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="UserHelpText">Enter new password</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="PatternHelpText">8-16 characters, containing 3 out of 4 of the following: Lowercase characters, uppercase characters, digits (0-9), and one or more of the following symbols: @ # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="DisplayName">Confirm New Password</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="UserHelpText">Confirm new password</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="PatternHelpText">#8-16 characters, containing 3 out of 4 of the following: Lowercase characters, uppercase characters, digits (0-9), and one or more of the following symbols: @ # $ % ^ & * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="displayName" StringId="DisplayName">Display Name</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="displayName" StringId="UserHelpText">Your display name.</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="surname" StringId="DisplayName">Surname</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="surname" StringId="UserHelpText">Your surname (also known as family name or last name).</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="givenName" StringId="DisplayName">Given Name</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="givenName" StringId="UserHelpText">Your given name (also known as first name).</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="button_continue">Create</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="error_fieldIncorrect">One or more fields are filled out incorrectly. Please check your entries and try again.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="error_passwordEntryMismatch">The password entry fields do not match. Please enter the same password in both fields and try again.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="error_requiredFieldMissing">A required field is missing. Please fill out all required fields and try again.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="helplink_text">What is this?</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="initial_intro">Please provide the following details.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="preloader_alt">Please wait</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="required_field">This information is required.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_but_edit">Change e-mail</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_but_resend">Send new code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_but_send">Send verification code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_but_verify">Verify code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_fail_code_expired">That code is expired. Please request a new code.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_fail_no_retry">You've made too many incorrect attempts. Please try again later.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_fail_retry">That code is incorrect. Please try again.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_fail_server">We are having trouble verifying your email address. Please enter a valid email address and try again.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_fail_throttled">There have been too many requests to verify this email address. Please wait a while, then try again.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_info_msg">Verification code has been sent to your inbox. Please copy it to the input box below.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_input">Verification code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_intro_msg">Verification is necessary. Please click Send button.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="ver_success_msg">E-mail address verified. You can now continue.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="ServiceThrottled">There are too many requests at this moment. Please wait for some time and try again.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimNotVerified">Claim not verified: {0}</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalAlreadyExists">A user with the specified ID already exists. Please choose a different one.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfIncorrectPattern">Incorrect pattern for: {0}</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidInput">{0} has invalid input.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMissingRequiredElement">Missing required element: {0}</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfValidationError">Error in validation by: {0}</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
电话身份验证页用户界面元素Phone factor authentication page user interface elements
以下 ID 适用于 ID 为 api.phonefactor
的内容定义以及电话因素技术配置文件。The Following are the IDs for a content definition with an ID of api.phonefactor
, and phone factor technical profile.
IDID | 默认值Default value |
---|---|
button_verifybutton_verify | 致电我Call Me |
country_code_labelcountry_code_label | 国家/地区代码Country Code |
cancel_messagecancel_message | 用户已取消多重身份验证The user has canceled multi-factor authentication |
text_button_send_second_codetext_button_send_second_code | 发送新验证码send a new code |
code_patterncode_pattern | \d{6}\d{6} |
intro_mixedintro_mixed | 我们记录了以下号码。We have the following number on record for you. 我们能够发送短信验证码或致电来验证你的身份。We can send a code via SMS or phone to authenticate you. |
intro_mixed_pintro_mixed_p | 我们记录了以下号码。We have the following numbers on record for you. 选择一个号码,以便我们能够通过电话或发送短信验证码来验证你的身份。Choose a number that we can phone or send a code via SMS to authenticate you. |
button_verify_codebutton_verify_code | 验证验证码Verify Code |
requiredField_coderequiredField_code | 请输入收到的验证码Please enter the verification code you received |
invalid_codeinvalid_code | 请输入收到的 6 位验证码Please enter the 6-digit code you received |
button_cancelbutton_cancel | 取消Cancel |
local_number_input_placeholder_textlocal_number_input_placeholder_text | 电话号码Phone number |
button_retrybutton_retry | 重试Retry |
alternative_textalternative_text | 我没有电话I don't have my phone |
intro_phone_pintro_phone_p | 我们记录了以下号码。We have the following numbers on record for you. 选择一个号码,以便我们能够通过电话来验证你的身份。Choose a number that we can phone to authenticate you. |
intro_phoneintro_phone | 我们记录了以下号码。We have the following number on record for you. 我们将通过电话来验证你的身份。We will phone to authenticate you. |
enter_code_text_introenter_code_text_intro | 请在下面输入验证码,或Enter your verification code below, or |
intro_entry_phoneintro_entry_phone | 请在下面输入一个号码,以便我们能够通过电话来验证你的身份。Enter a number below that we can phone to authenticate you. |
intro_entry_smsintro_entry_sms | 请在下面输入一个号码,以便我们能够发送短信验证码来验证你的身份。Enter a number below that we can send a code via SMS to authenticate you. |
button_send_codebutton_send_code | 发送验证码Send Code |
invalid_numberinvalid_number | 请输入有效电话号码Please enter a valid phone number |
intro_smsintro_sms | 我们记录了以下号码。We have the following number on record for you. 我们将发送短信验证码来验证你的身份。We will send a code via SMS to authenticate you. |
intro_entry_mixedintro_entry_mixed | 请在下面输入一个号码,以便我们能够发送短信验证码或通过电话来验证你的身份。Enter a number below that we can send a code via SMS or phone to authenticate you. |
number_patternnumber_pattern | ^\+(?:[0-9][\x20-]?){6,14}[0-9]$^\+(?:[0-9][\x20-]?){6,14}[0-9]$ |
intro_sms_pintro_sms_p | 我们记录了以下号码。We have the following numbers on record for you. 选择一个号码,以便我们能够发送短信验证码来验证你的身份。Choose a number that we can send a code via SMS to authenticate you. |
requiredField_countryCoderequiredField_countryCode | 请选择国家/地区代码Please select your country code |
requiredField_numberrequiredField_number | 请输入电话号码Please enter your phone number |
country_code_input_placeholder_textcountry_code_input_placeholder_text | 国家或地区Country or region |
number_labelnumber_label | 电话号码Phone Number |
error_tryagainerror_tryagain | 你提供的电话号码占线或不可用。The phone number you provided is busy or unavailable. 请检查号码并重试。Please check the number and try again. |
error_incorrect_codeerror_incorrect_code | 你输入的验证码与我们的记录不一致。The verification code you have entered does not match our records. 请重试,或请求获取新验证码。Please try again, or request a new code. |
countryListcountryList | 请参阅国家/地区列表。See the countries list. |
error_448error_448 | 你提供的电话号码打不通。The phone number you provided is unreachable. |
error_449error_449 | 用户已超出重试次数上限。User has exceeded the number of retry attempts. |
verification_code_input_placeholder_textverification_code_input_placeholder_text | 验证码Verification code |
下面的示例演示如何在 MFA 注册页中使用某些用户界面元素:The following example shows the use of some of the user interface elements in the MFA enrollment page:
下面的示例演示如何在 MFA 验证页中使用某些用户界面元素:The following example shows the use of some of the user interface elements in the MFA validation page:
电话因素身份验证页示例Phone factor authentication page example
<LocalizedResources Id="api.phonefactor.en">
<LocalizedStrings>
<LocalizedString ElementType="UxElement" StringId="button_verify">Call Me</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="country_code_label">Country Code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="cancel_message">The user has canceled multi-factor authentication</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="text_button_send_second_code">Send a new code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="code_pattern">\d{6}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_mixed">We have the following number on record for you. We can send a code via SMS or phone to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_mixed_p">We have the following numbers on record for you. Choose a number that we can phone or send a code via SMS to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="button_verify_code">Verify Code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="requiredField_code">Please enter the verification code you received</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="invalid_code">Please enter the 6-digit code you received</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="button_cancel">Cancel</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="local_number_input_placeholder_text">Phone number</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="button_retry">Retry</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="alternative_text">I don't have my phone</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_phone_p">We have the following numbers on record for you. Choose a number that we can phone to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_phone">We have the following number on record for you. We will phone to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="enter_code_text_intro">Enter your verification code below, or</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_entry_phone">Enter a number below that we can phone to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_entry_sms">Enter a number below that we can send a code via SMS to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="button_send_code">Send Code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="invalid_number">Please enter a valid phone number</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_sms">We have the following number on record for you. We will send a code via SMS to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_entry_mixed">Enter a number below that we can send a code via SMS or phone to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="number_pattern">^\+(?:[0-9][\x20-]?){6,14}[0-9]$</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="intro_sms_p">We have the following numbers on record for you. Choose a number that we can send a code via SMS to authenticate you.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="requiredField_countryCode">Please select your country code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="requiredField_number">Please enter your phone number</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="country_code_input_placeholder_text">Country or region</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="number_label">Phone Number</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="error_tryagain">The phone number you provided is busy or unavailable. Please check the number and try again.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="error_incorrect_code">The verification code you have entered does not match our records. Please try again, or request a new code.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="countryList">{"DEFAULT":"Country/Region","AF":"Afghanistan","AX":"Åland Islands","AL":"Albania","DZ":"Algeria","AS":"American Samoa","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarctica","AG":"Antigua and Barbuda","AR":"Argentina","AM":"Armenia","AW":"Aruba","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BS":"Bahamas","BH":"Bahrain","BD":"Bangladesh","BB":"Barbados","BY":"Belarus","BE":"Belgium","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BQ":"Bonaire","BA":"Bosnia and Herzegovina","BW":"Botswana","BV":"Bouvet Island","BR":"Brazil","IO":"British Indian Ocean Territory","VG":"British Virgin Islands","BN":"Brunei","BG":"Bulgaria","BF":"Burkina Faso","BI":"Burundi","CV":"Cabo Verde","KH":"Cambodia","CM":"Cameroon","CA":"Canada","KY":"Cayman Islands","CF":"Central African Republic","TD":"Chad","CL":"Chile","CN":"China","CX":"Christmas Island","CC":"Cocos (Keeling) Islands","CO":"Colombia","KM":"Comoros","CG":"Congo","CD":"Congo (DRC)","CK":"Cook Islands","CR":"Costa Rica","CI":"Côte d'Ivoire","HR":"Croatia","CU":"Cuba","CW":"Curaçao","CY":"Cyprus","CZ":"Czech Republic","DK":"Denmark","DJ":"Djibouti","DM":"Dominica","DO":"Dominican Republic","EC":"Ecuador","EG":"Egypt","SV":"El Salvador","GQ":"Equatorial Guinea","ER":"Eritrea","EE":"Estonia","ET":"Ethiopia","FK":"Falkland Islands","FO":"Faroe Islands","FJ":"Fiji","FI":"Finland","FR":"France","GF":"French Guiana","PF":"French Polynesia","TF":"French Southern Territories","GA":"Gabon","GM":"Gambia","GE":"Georgia","DE":"Germany","GH":"Ghana","GI":"Gibraltar","GR":"Greece","GL":"Greenland","GD":"Grenada","GP":"Guadeloupe","GU":"Guam","GT":"Guatemala","GG":"Guernsey","GN":"Guinea","GW":"Guinea-Bissau","GY":"Guyana","HT":"Haiti","HM":"Heard Island and McDonald Islands","HN":"Honduras","HK":"Hong Kong SAR","HU":"Hungary","IS":"Iceland","IN":"India","ID":"Indonesia","IR":"Iran","IQ":"Iraq","IE":"Ireland","IM":"Isle of Man","IL":"Israel","IT":"Italy","JM":"Jamaica","JP":"Japan","JE":"Jersey","JO":"Jordan","KZ":"Kazakhstan","KE":"Kenya","KI":"Kiribati","KR":"Korea","KW":"Kuwait","KG":"Kyrgyzstan","LA":"Laos","LV":"Latvia","LB":"Lebanon","LS":"Lesotho","LR":"Liberia","LY":"Libya","LI":"Liechtenstein","LT":"Lithuania","LU":"Luxembourg","MO":"Macao SAR","MK":"North Macedonia","MG":"Madagascar","MW":"Malawi","MY":"Malaysia","MV":"Maldives","ML":"Mali","MT":"Malta","MH":"Marshall Islands","MQ":"Martinique","MR":"Mauritania","MU":"Mauritius","YT":"Mayotte","MX":"Mexico","FM":"Micronesia","MD":"Moldova","MC":"Monaco","MN":"Mongolia","ME":"Montenegro","MS":"Montserrat","MA":"Morocco","MZ":"Mozambique","MM":"Myanmar","NA":"Namibia","NR":"Nauru","NP":"Nepal","NL":"Netherlands","NC":"New Caledonia","NZ":"New Zealand","NI":"Nicaragua","NE":"Niger","NG":"Nigeria","NU":"Niue","NF":"Norfolk Island","KP":"North Korea","MP":"Northern Mariana Islands","NO":"Norway","OM":"Oman","PK":"Pakistan","PW":"Palau","PS":"Palestinian Authority","PA":"Panama","PG":"Papua New Guinea","PY":"Paraguay","PE":"Peru","PH":"Philippines","PN":"Pitcairn Islands","PL":"Poland","PT":"Portugal","PR":"Puerto Rico","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Russia","RW":"Rwanda","BL":"Saint Barthélemy","KN":"Saint Kitts and Nevis","LC":"Saint Lucia","MF":"Saint Martin","PM":"Saint Pierre and Miquelon","VC":"Saint Vincent and the Grenadines","WS":"Samoa","SM":"San Marino","ST":"São Tomé and Príncipe","SA":"Saudi Arabia","SN":"Senegal","RS":"Serbia","SC":"Seychelles","SL":"Sierra Leone","SG":"Singapore","SX":"Sint Maarten","SK":"Slovakia","SI":"Slovenia","SB":"Solomon Islands","SO":"Somalia","ZA":"South Africa","GS":"South Georgia and South Sandwich Islands","SS":"South Sudan","ES":"Spain","LK":"Sri Lanka","SH":"St Helena, Ascension, Tristan da Cunha","SD":"Sudan","SR":"Suriname","SJ":"Svalbard","SZ":"Swaziland","SE":"Sweden","CH":"Switzerland","SY":"Syria","TW":"Taiwan","TJ":"Tajikistan","TZ":"Tanzania","TH":"Thailand","TL":"Timor-Leste","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trinidad and Tobago","TN":"Tunisia","TR":"Turkey","TM":"Turkmenistan","TC":"Turks and Caicos Islands","TV":"Tuvalu","UM":"U.S. Outlying Islands","VI":"U.S. Virgin Islands","UG":"Uganda","UA":"Ukraine","AE":"United Arab Emirates","GB":"United Kingdom","US":"United States","UY":"Uruguay","UZ":"Uzbekistan","VU":"Vanuatu","VA":"Vatican City","VE":"Venezuela","VN":"Vietnam","WF":"Wallis and Futuna","YE":"Yemen","ZM":"Zambia","ZW":"Zimbabwe"}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="error_448">The phone number you provided is unreachable.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="error_449">User has exceeded the number of retry attempts.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_code_input_placeholder_text">Verification code</LocalizedString>
<LocalizedString ElementType="ClaimType" ElementId="strongAuthenticationPhoneNumber" StringId="DisplayName">Phone Number</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
验证显示控件用户界面元素Verification display control user interface elements
以下是页面布局版本为 2.1.0 或更高版本的验证显示控件的 ID。The following are the IDs for a Verification display control with page layout version 2.1.0 or higher.
IDID | 默认值Default value |
---|---|
intro_msgintro_msg | 验证是必需的。Verification is necessary. 请单击“发送”按钮。Please click Send button. |
success_send_code_msgsuccess_send_code_msg | 验证码已发送到收件箱。Verification code has been sent to your inbox. 请将其复制到下面的输入框。Please copy it to the input box below. |
failure_send_code_msgfailure_send_code_msg | 我们无法验证你的电子邮件地址。We are having trouble verifying your email address. 请输入有效的电子邮件地址,然后重试。Please enter a valid email address and try again. |
success_verify_code_msgsuccess_verify_code_msg | 已验证电子邮件地址。E-mail address verified. 现在可以继续。You can now continue. |
failure_verify_code_msgfailure_verify_code_msg | 我们无法验证你的电子邮件地址。We are having trouble verifying your email address. 请重试。Please try again. |
but_send_codebut_send_code | 发送验证代码Send verification code |
but_verify_codebut_verify_code | 验证验证码Verify code |
but_send_new_codebut_send_new_code | 发送新验证码Send new code |
but_change_claimsbut_change_claims | 更改电子邮件Change e-mail |
验证显示控件示例Verification display control example
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<!-- Display control UI elements-->
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="intro_msg">Verification is necessary. Please click Send button.</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="success_send_code_msg">Verification code has been sent to your inbox. Please copy it to the input box below.</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="failure_send_code_msg">We are having trouble verifying your email address. Please enter a valid email address and try again.</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="success_verify_code_msg">E-mail address verified. You can now continue.</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="failure_verify_code_msg">We are having trouble verifying your email address. Please try again.</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_send_code">Send verification code</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_verify_code">Verify code</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_send_new_code">Send new code</LocalizedString>
<LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_change_claims">Change e-mail</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
验证显示控件用户界面元素(已弃用)Verification display control user interface elements (deprecated)
以下是页面布局版本为 2.0.0 的验证显示控件的 ID。The following are the IDs for a Verification display control with page layout version 2.0.0.
IDID | 默认值Default value |
---|---|
verification_control_but_change_claimsverification_control_but_change_claims | 更改Change |
verification_control_fail_send_codeverification_control_fail_send_code | 无法发送代码,请稍后重试。Failed to send the code, please try again later. |
verification_control_fail_verify_codeverification_control_fail_verify_code | 无法验证代码,请稍后重试。Failed to verify the code, please try again later. |
verification_control_but_send_codeverification_control_but_send_code | 发送验证码Send Code |
verification_control_but_send_new_codeverification_control_but_send_new_code | 发送新代码Send New Code |
verification_control_but_verify_codeverification_control_but_verify_code | 验证验证码Verify Code |
verification_control_code_sentverification_control_code_sent | 已发送验证码。Verification code has been sent. 请将其复制到下面的输入框。Please copy it to the input box below. |
验证显示控件示例(已弃用)Verification display control example (deprecated)
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="UxElement" StringId="verification_control_but_change_claims">Change</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_control_fail_send_code">Failed to send the code, please try again later.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_control_fail_verify_code">Failed to verify the code, please try again later.</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_control_but_send_code">Send Code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_control_but_send_new_code">Send New Code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_control_but_verify_code">Verify Code</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_control_code_sent">Verification code has been sent. Please copy it to the input box below.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
Restful 服务错误消息Restful service error messages
以下是 Restful 服务技术配置文件错误消息的 ID:The following are the IDs for Restful service technical profile error messages:
IDID | 默认值Default value |
---|---|
DefaultUserMessageIfRequestFailedDefaultUserMessageIfRequestFailed | 未能建立与 Restful 服务终结点的连接。Failed to establish connection to restful service end point. Restful 服务 URL:{0}Restful service URL: {0} |
UserMessageIfCircuitOpenUserMessageIfCircuitOpen | {0}Restful 服务 URL:{1}{0} Restful Service URL: {1} |
UserMessageIfDnsResolutionFailedUserMessageIfDnsResolutionFailed | 未能解析 Restful 服务终结点的主机名。Failed to resolve the hostname of the restful service endpoint. Restful 服务 URL:{0}Restful service URL: {0} |
UserMessageIfRequestTimeoutUserMessageIfRequestTimeout | 未能在 {0} 秒的超时限制内建立与 Restful 服务终结点的连接。Failed to establish connection to restful service end point within timeout limit {0} seconds. Restful 服务 URL:{1}Restful service URL: {1} |
Restful 服务示例Restful service example
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="ErrorMessage" StringId="DefaultUserMessageIfRequestFailed">Failed to establish connection to restful service end point.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfCircuitOpen">Unable to connect to the restful service end point.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfDnsResolutionFailed">Failed to resolve the hostname of the restful service endpoint.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfRequestTimeout">Failed to establish connection to restful service end point within timeout limit.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
Azure AD MFA 错误消息Azure AD MFA error messages
以下是 Azure AD MFA 技术配置文件错误消息的 ID:The following are the IDs for an Azure AD MFA technical profile error messages:
IDID | 默认值Default value |
---|---|
UserMessageIfCouldntSendSmsUserMessageIfCouldntSendSms | 无法向手机发送短信,请尝试另一个电话号码。Cannot Send SMS to the phone, please try another phone number. |
UserMessageIfInvalidFormatUserMessageIfInvalidFormat | 电话号码格式无效,请更正,然后重试。Your phone number is not in a valid format, please correct it and try again. |
UserMessageIfMaxAllowedCodeRetryReachedUserMessageIfMaxAllowedCodeRetryReached | 输入错误代码的次数过多,请稍后重试。Wrong code entered too many times, please try again later. |
UserMessageIfServerErrorUserMessageIfServerError | 无法使用 MFA 服务,请稍后重试。Cannot use MFA service, please try again later. |
UserMessageIfThrottledUserMessageIfThrottled | 请求被阻止,请稍后重试。Your request has been throttled, please try again later. |
UserMessageIfWrongCodeEnteredUserMessageIfWrongCodeEntered | 输入的代码错误,请重试。Wrong code entered, please try again. |
Azure AD MFA 示例Azure AD MFA example
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfCouldntSendSms">Cannot Send SMS to the phone, please try another phone number.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidFormat">Your phone number is not in a valid format, please correct it and try again.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMaxAllowedCodeRetryReached">Wrong code entered too many times, please try again later.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfServerError">Cannot use MFA service, please try again later.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfThrottled">Your request has been throttled, please try again later.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfWrongCodeEntered">Wrong code entered, please try again.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
Azure AD SSPRAzure AD SSPR
以下是 Azure AD SSPR 技术配置文件错误消息的 ID:The following are the IDs for Azure AD SSPR technical profile error messages:
IDID | 默认值Default value |
---|---|
UserMessageIfChallengeExpiredUserMessageIfChallengeExpired | 代码已过期。The code has expired. |
UserMessageIfInternalErrorUserMessageIfInternalError | 电子邮件服务遇到内部错误,请稍后重试。The email service has encountered an internal error, please try again later. |
UserMessageIfThrottledUserMessageIfThrottled | 你发送的请求过多,请稍后重试。You have sent too many requests, please try again later. |
UserMessageIfVerificationFailedNoRetryUserMessageIfVerificationFailedNoRetry | 已超过最大的验证尝试次数。You have exceeded maximum number of verification attempts. |
UserMessageIfVerificationFailedRetryAllowedUserMessageIfVerificationFailedRetryAllowed | 验证失败,请重试。The verification has failed, please try again. |
Azure AD SSPR 示例Azure AD SSPR example
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInternalError">We are having trouble verifying your email address. Please try again later.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfThrottled">There have been too many requests to verify this email address. Please wait a while, then try again.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfChallengeExpired">That code is expired. Please request a new code.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationFailedNoRetry">You've made too many incorrect attempts. Please try again later.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationFailedRetryAllowed">That code is incorrect. Please try again.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
一次性密码错误消息One time password error messages
以下是一次性密码技术配置文件错误消息的 IDThe following are the IDs for a one-time password technical profile error messages
IDID | 默认值Default value |
---|---|
UserMessageIfMaxRetryAttemptedUserMessageIfMaxRetryAttempted | 一次性密码提供的验证已超过最大尝试次数One time password provided verification has exceeded maximum number of attempts |
UserMessageIfSessionDoesNotExistUserMessageIfSessionDoesNotExist | 一次性密码验证会话已过期One time password verification session has expired |
UserMessageIfSessionConflictUserMessageIfSessionConflict | 一次性密码验证会话存在冲突One time password verification session has conflict |
UserMessageIfInvalidCodeUserMessageIfInvalidCode | 所提供的用于验证的一次性密码不正确One time password provided for verification is incorrect |
UserMessageIfVerificationFailedRetryAllowedUserMessageIfVerificationFailedRetryAllowed | 验证码不正确。That code is incorrect. 请重试。Please try again. |
一次性密码示例One time password example
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfSessionDoesNotExist">You have exceeded the maximum time allowed.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMaxRetryAttempted">You have exceeded the number of retries allowed.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidCode">You have entered the wrong code.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfSessionConflict">Cannot verify the code, please try again later.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationFailedRetryAllowed">That code is incorrect. Please try again.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
声明转换错误消息Claims transformations error messages
以下是声明转换错误消息的 ID:The following are the IDs for claims transformations error messages:
IDID | 声明转换Claims transformation | 默认值Default value |
---|---|---|
UserMessageIfClaimsTransformationBooleanValueIsNotEqualUserMessageIfClaimsTransformationBooleanValueIsNotEqual | AssertBooleanClaimIsEqualToValueAssertBooleanClaimIsEqualToValue | 声明类型“inputClaim”的布尔声明值比较失败。Boolean claim value comparison failed for claim type "inputClaim". |
DateTimeGreaterThanDateTimeGreaterThan | AssertDateTimeIsGreaterThanAssertDateTimeIsGreaterThan | 声明值比较失败:提供的左操作数大于右操作数。Claim value comparison failed: The provided left operand is greater than the right operand. |
UserMessageIfClaimsTransformationStringsAreNotEqualUserMessageIfClaimsTransformationStringsAreNotEqual | AssertStringClaimsAreEqualAssertStringClaimsAreEqual | 使用 StringComparison“OrdinalIgnoreCase”的声明值比较失败。Claim value comparison failed using StringComparison "OrdinalIgnoreCase". |
声明转换示例Claims transformations example
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Your email address hasn't been verified.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="DateTimeGreaterThan">Expiration date must be greater that the current date.</LocalizedString>
<LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationStringsAreNotEqual">The email entry fields do not match. Please enter the same email address in both fields and try again.</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
后续步骤Next steps
有关本地化示例,请参阅以下文章:See the following articles for localization examples: