分享方式:


本地化字串標識碼

注意

在 Azure Active Directory B2C 中, 自定義原則 的設計主要是為了解決複雜的案例。 在大部分情況下,我們建議您使用內 建的使用者流程。 如果您尚未這麼做,請了解開始使用 Active Directory B2C 中的自定義原則入門套件。

Localization 元素可讓您在使用者旅程圖的原則中支援多個地區設定或語言。 本文提供您可以在原則中使用的當地語系化識別碼清單。 如需 UI 本地化的詳細資訊,請參閱 當地語系化

註冊或登入頁面元素

下列標識碼用於標識碼 api.signuporsignin為 的內容定義,以及 自我判斷技術配置檔

識別碼 預設值 版面配置版本
forgotpassword_link 忘記密碼? All
createaccount_intro 還沒有帳戶嗎? All
button_signin 登入 All
social_intro 使用您的社交帳戶登入 All
remember_me 讓我保持登入。 All
unknown_error 登入時發生問題。 請稍後再試一次。 All
divider_title OR All
local_intro_email 使用您的現有帳戶登入 < 2.0.0
logonIdentifier_email 電子郵件地址 < 2.0.0
requiredField_email 請輸入您的電子郵件 < 2.0.0
invalid_email 請輸入有效的電子郵件位址 < 2.0.0
email_pattern ^[a-zA-Z0-9.!#$%&'*+\/=?^_`\{\|\}~\-]+@[a-zA-Z0-9\-]+(?:\\.[a-zA-Z0-9\-]+)\*$ < 2.0.0
local_intro_username 使用您的使用者名稱登入 < 2.0.0
logonIdentifier_username 使用者名稱 < 2.0.0
requiredField_username 請輸入您的使用者名稱 < 2.0.0
password 密碼 < 2.0.0
requiredField_password 請輸入您的密碼 < 2.0.0
createaccount_link 立即註冊 < 2.0.0
cancel_message 用戶忘記密碼 < 2.0.0
invalid_password 您輸入的密碼不是預期的格式。 < 2.0.0
createaccount_one_link 立即註冊 >= 2.0.0
createaccount_two_links 使用 {0} 或 註冊 {1} >= 2.0.0
createaccount_three_links 使用 {0}、 {1}或 註冊 {2} >= 2.0.0
local_intro_generic 使用您的 登入 {0} >= 2.1.0
requiredField_generic 請輸入您的 {0} >= 2.1.0
invalid_generic 請輸入有效的 {0} >= 2.1.1
heading 登入 >= 2.1.1

注意

  • 之類的 {0} 佔位元會自動 DisplayName 填入的值 ClaimType
  • 若要瞭解如何當地語系化 ClaimType,請參閱 註冊或登入範例

下列範例示範在註冊或登入頁面中使用某些使用者介面元素:

顯示註冊或登入頁面 U X 元素的螢幕快照。

註冊或登入識別提供者

識別提供者的標識碼是在使用者旅程圖 ClaimsExchange 元素中設定。 若要將識別提供者的標題本地化, ElementType 會設定為 ClaimsProvider,而 StringId 會設定為 的 ClaimsExchange標識符。

<OrchestrationStep Order="2" Type="ClaimsExchange">
  <Preconditions>
    <Precondition Type="ClaimsExist" ExecuteActionsIf="true">
      <Value>objectId</Value>
      <Action>SkipThisOrchestrationStep</Action>
    </Precondition>
  </Preconditions>
  <ClaimsExchanges>
    <ClaimsExchange Id="FacebookExchange" TechnicalProfileReferenceId="Facebook-OAUTH" />
    <ClaimsExchange Id="MicrosoftExchange" TechnicalProfileReferenceId="MSA-OIDC" />
    <ClaimsExchange Id="GoogleExchange" TechnicalProfileReferenceId="Google-OAUTH" />
    <ClaimsExchange Id="SignUpWithLogonEmailExchange" TechnicalProfileReferenceId="LocalAccount" />
  </ClaimsExchanges>
</OrchestrationStep>

下列範例會將 Facebook 識別提供者當地語系化為阿拉伯文:

<LocalizedString ElementType="ClaimsProvider" StringId="FacebookExchange">فيس بوك</LocalizedString>

註冊或登入錯誤訊息

識別碼 預設值
UserMessageIfInvalidPassword 您的密碼不正確。
UserMessageIfPasswordExpired 您的密碼已過期。
UserMessageIfClaimsPrincipalDoesNotExist 我們似乎找不到您的帳戶。
UserMessageIfOldPasswordUsed 您似乎使用了舊密碼。
DefaultMessage 用戶名稱或密碼無效。
UserMessageIfUserAccountDisabled 您的帳戶已鎖定。 請連絡您的支持人員以解除鎖定,然後再試一次。
UserMessageIfUserAccountLocked 您的帳戶已暫時鎖定,以防止未經授權的使用。 請稍後再試一次。
AADRequestsThrottled 目前要求太多。 請稍候一段時間,然後再試一次。

註冊或登入範例

<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>

註冊和自我判斷頁面用戶介面元素

下列標識碼用於具有標識符 api.localaccountsignup 的內容定義,或任何開頭 api.selfasserted為 的內容定義,例如 api.selfasserted.profileupdateapi.localaccountpasswordreset,以及 自我判斷技術配置檔

識別碼 預設值
ver_sent 驗證碼已傳送至:
ver_but_default 預設
cancel_message 使用者已取消輸入自我判斷資訊
preloader_alt 請稍候
ver_but_send 傳送驗證碼
alert_yes Yes
error_fieldIncorrect 一或多個字段填入不正確。 請檢查您的項目,然後再試一次。
year Year
verifying_blurb 當我們處理您的資訊時,請稍候。
button_cancel 取消
ver_fail_no_retry 您嘗試了太多不正確的嘗試。 請稍後再試一次。
month Month
ver_success_msg 已驗證電子郵件位址。 您現在可以繼續。
months 1 月、2 月、3 月、4 月、5 月、7 月、8 月、9 月、10 月、12 月
ver_fail_server 我們無法驗證您的電子郵件位址。 請輸入有效的電子郵件地址,然後再試一次。
error_requiredFieldMissing 遺漏必要的欄位。 請填寫所有必要的欄位,然後再試一次。
heading 使用者詳細資料
initial_intro 請提供下列詳細資料。
ver_but_resend 傳送新程序代碼
button_continue 建立​​
error_passwordEntryMismatch 密碼專案欄位不符。 請在這兩個字段中輸入相同的密碼,然後再試一次。
ver_incorrect_format 格式不正確。
ver_but_edit 變更電子郵件
ver_but_verify 檢查驗證碼
alert_no No
ver_info_msg 驗證碼已傳送至您的收件匣。 請將它複製到下方的輸入方塊。
day Day
ver_fail_throttled 要求太多,無法驗證此電子郵件位址。 請稍候一段時間,然後再試一次。
helplink_text 這是什麼?
ver_fail_retry 該程式代碼不正確。 請再試一次。
alert_title 取消輸入詳細數據
required_field 這是必要資訊。
alert_message 您確定要取消輸入詳細資料嗎?
ver_intro_msg 驗證是必要的。 請按下 [傳送] 按鈕。
ver_input 驗證碼
required_field_descriptive {0} 為必要專案

下列 UxElement 字串標識碼會顯示自我判斷頁面底部的免責聲明連結。 除非在當地語系化字串中指定,否則預設不會顯示這些連結。

識別碼 範例值
disclaimer_msg_intro 藉由提供您的電話號碼,您同意接收由簡訊傳送的一次性密碼,以協助您登入 {insert your application name}。 標準訊息和數據速率可能適用。
disclaimer_link_1_text 隱私權聲明
disclaimer_link_1_url {插入您的隱私聲明 URL}
disclaimer_link_2_text 條款及條件
disclaimer_link_2_url {插入您的條款和條件 URL}

註冊和自我判斷頁面錯誤訊息

識別碼 預設值
UserMessageIfClaimsPrincipalAlreadyExists 具有指定標識碼的用戶已經存在。 請選擇不同的。
UserMessageIfClaimNotVerified 未驗證宣告: {0}
UserMessageIfIncorrectPattern 不正確的模式: {0}
UserMessageIfMissingRequiredElement 遺漏必要的元素: {0}
UserMessageIfValidationError 驗證時發生錯誤:: {0}
UserMessageIfInvalidInput {0} 輸入無效。
ServiceThrottled 目前要求太多。 請稍候一段時間,然後再試一次。

下列範例示範在註冊頁面中使用某些使用者介面元素:

註冊頁面,其UI元素名稱已加上標籤

下列範例示範在註冊頁面上選取 [傳送驗證碼] 按鈕之後,使用註冊頁面上的一些使用者介面元素:

註冊頁面電子郵件驗證 UX 元素

註冊和自我判斷頁面範例

<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: @ # $ % ^ &amp; * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</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: @ # $ % ^ &amp; * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</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="heading">User Details</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="required_field_descriptive">{0} 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>
    <!-- The following elements will display a message and two links at the bottom of the page. 
         For policies that you intend to show to users in the United States, we suggest displaying the following text. Replace the content of the disclaimer_link_X_url elements with links to your organization's privacy statement and terms and conditions. 
          Uncomment any of these lines to display them.  -->
    <!-- <LocalizedString ElementType="UxElement" StringId="disclaimer_msg_intro">By providing your phone number, you consent to receiving a one-time passcode sent by text message to help you sign into {insert your application name}. Standard message and data rates may apply.</LocalizedString> -->
    <!-- <LocalizedString ElementType="UxElement" StringId="disclaimer_link_1_text">Privacy Statement</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="disclaimer_link_1_url">{insert your privacy statement URL}</LocalizedString> -->
    <!-- <LocalizedString ElementType="UxElement" StringId="disclaimer_link_2_text">Terms and Conditions</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="disclaimer_link_2_url">{insert your terms and conditions URL}</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 頁面使用者介面元素

以下是標識碼 api.phonefactor為 的內容定義標識碼,以及 電話因數技術配置檔

識別碼 預設值 版面配置版本
button_verify 致電給我 All
country_code_label 國碼 (地區碼) All
cancel_message 使用者已取消多重要素驗證 All
text_button_send_second_code 傳送新的程序代碼 All
code_pattern \d{6} All
intro_mixed 我們為您記錄了下列數位。 我們可以透過簡訊或電話傳送代碼來驗證您。 All
intro_mixed_p 我們為您記錄了下列數位。 選擇我們可以透過簡訊撥打電話或傳送代碼來驗證您的號碼。 All
button_verify_code 驗證碼 All
requiredField_code 請輸入您收到的驗證碼 All
invalid_code 請輸入您收到的 6 位數代碼 All
button_cancel 取消 All
local_number_input_placeholder_text 電話號碼 All
button_retry 重試 All
alternative_text 我沒有手機 All
intro_phone_p 我們為您記錄了下列數位。 選擇我們可以撥打電話來驗證您的號碼。 All
intro_phone 我們為您記錄了下列數位。 我們會撥打電話來驗證您。 All
enter_code_text_intro 在下方輸入您的驗證碼,或 All
intro_entry_phone 輸入下列號碼,我們可以撥打電話來驗證您。 All
intro_entry_sms 輸入下列數字,我們可以透過SMS傳送代碼來驗證您。 All
button_send_code 傳送代碼 All
invalid_number 請輸入有效的電話號碼 All
intro_sms 我們為您記錄了下列數位。 我們會透過SMS傳送程式代碼來驗證您。 All
intro_entry_mixed 請於下方輸入號碼,將透過簡訊傳送代碼或致電給您,以驗證您的身分。 All
number_pattern ^\\+(?:[0-9][\\x20-]?){6,14}[0-9]$ All
intro_sms_p 我們為您記錄了下列數位。 選擇一個號碼,我們可以透過SMS傳送代碼來驗證您。 All
requiredField_countryCode 請選取您的國家/地區代碼 All
requiredField_number 請輸入您的電話號碼 All
country_code_input_placeholder_text 國家或區域 All
number_label 電話號碼 All
error_tryagain 您提供的電話號碼忙碌或無法使用。 請檢查號碼,然後再試一次。 All
error_sms_throttled 您達到簡訊數目的限制。 請稍後再試。 >= 1.2.3
error_phone_throttled 您達到呼叫嘗試次數的限制。 請稍後再試。 >= 1.2.3
error_throttled 您達到驗證嘗試次數的限制。 請稍後再試。 >= 1.2.3
error_incorrect_code 您輸入的驗證碼不符合我們的記錄。 請再試一次,或要求新的程序代碼。 All
countryList 請參閱 國家/地區清單 All
error_448 您提供的電話號碼無法連線。 All
error_449 用戶已超過重試次數。 All
verification_code_input_placeholder_text 驗證碼 All

下列範例顯示 MFA 註冊頁面中某些使用者介面元素的使用方式:

電話要素驗證註冊 UX 元素

下列範例顯示 MFA 驗證頁面中某些使用者介面元素的使用方式:

電話要素驗證驗證 UX 元素

電話要素驗證頁面範例

<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_sms_throttled">You hit the limit on the number of text messages. Try again shortly.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_phone_throttled">You hit the limit on the number of call attempts. Try again shortly.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_throttled">You hit the limit on the number of verification attempts. Try again shortly.</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":"Türkiye","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>

驗證顯示控制項使用者介面元素

下列標識碼用於具有 2.1.0 版或更新版本的驗證顯示控件

識別碼 預設值
intro_msg1 驗證是必要的。 請按下 [傳送] 按鈕。
success_send_code_msg 已傳送驗證碼。 請將它複製到下方的輸入方塊。
failure_send_code_msg 我們無法驗證您的電子郵件位址。 請輸入有效的電子郵件地址,然後再試一次。
success_verify_code_msg 已驗證電子郵件位址。 您現在可以繼續。
failure_verify_code_msg 我們無法驗證您的電子郵件位址。 請再試一次。
but_send_code 傳送驗證碼
but_verify_code 檢查驗證碼
but_send_new_code 傳送新程序代碼
but_change_claims 變更電子郵件
UserMessageIfVerificationControlClaimsNotVerified 2 尚未驗證驗證控制件的宣告。

1 元素 intro_msg 已隱藏,且不會顯示在自我判斷頁面上。 若要使其可見,請使用 HTML 自定義 搭配級聯樣式表。 例如:

.verificationInfoText div{display: block!important}

2 如果使用者輸入驗證碼,就會向用戶顯示此錯誤訊息,但不要選取 [驗證] 按鈕來完成驗證,而是選取 [繼續] 按鈕。

驗證顯示控件範例

<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>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationControlClaimsNotVerified">The claims for verification control have not been verified.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

驗證顯示控制項使用者介面元素 (已淘汰)

下列標識碼用於具有頁面配置 2.0.0 版的驗證顯示控件

識別碼 預設值
verification_control_but_change_claims 變更
verification_control_fail_send_code 無法傳送程式代碼,請稍後再試一次。
verification_control_fail_verify_code 無法驗證程序代碼,請稍後再試一次。
verification_control_but_send_code 傳送代碼
verification_control_but_send_new_code 傳送新程序代碼
verification_control_but_verify_code 驗證碼
verification_control_code_sent 已傳送驗證碼。 請將它複製到下方的輸入方塊。

驗證顯示控制項範例 (已淘汰)

<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>

TOTP MFA 控制件顯示控制項使用者介面元素

下列識別碼用於具有頁面配置 2.1.9 版和更新版本的時間型單次密碼 (TOTP) 顯示控制項

識別碼 預設值
title_text 使用 iOS 和 Android 的下載鏈接下載Microsoft Authenticator,或使用您選擇的任何其他驗證器應用程式。
DN 下載 Authenticator 應用程式之後,您可以使用下列任何方法繼續進行註冊。
DisplayName 下載 Authenticator 應用程式之後,您可以使用下列任何方法繼續進行註冊。
title_text 掃描 QR 代碼
info_msg 您可以下載 Microsoft Authenticator 應用程式,或使用您選擇的任何其他驗證器應用程式。
link_text 無法掃描? 請嘗試這樣做
title_text 手動輸入帳戶詳細數據。
account_name 帳戶名稱:
display_prefix 祕密
collapse_text 仍然遇到問題嗎?
DisplayName 從驗證器應用程式輸入驗證碼。
DisplayName 輸入您的程序代碼。
button_continue Verify

TOTP MFA 控件顯示控件範例

      <LocalizedResources Id="api.selfasserted.totp.en">
        <LocalizedStrings>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorAppIconControl" StringId="title_text">Download the Microsoft Authenticator using the download links for iOS and Android or use any other authenticator app of your choice.</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorAppIconControl" StringId="DN">Once you&#39;ve downloaded the Authenticator app, you can use any of the methods below to continue with enrollment.</LocalizedString>
          <LocalizedString ElementType="ClaimType" ElementId="QrCodeScanInstruction" StringId="DisplayName">Once you've downloaded the Authenticator app, you can use any of the methods below to continue with enrollment.</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="title_text">Scan the QR code</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="info_msg">You can download the Microsoft Authenticator app or use any other authenticator app of your choice.</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="link_text">Can&#39;t scan? Try this</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="title_text">Enter the account details manually</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="account_name">Account Name:</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="display_prefix">Secret</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="collapse_text">Still having trouble?</LocalizedString>
          <LocalizedString ElementType="ClaimType" ElementId="QrCodeVerifyInstruction" StringId="DisplayName">Enter the verification code from your authenticator app​.</LocalizedString>
          <LocalizedString ElementType="ClaimType" ElementId="otpCode" StringId="DisplayName">Enter your code.</LocalizedString>
          <LocalizedString ElementType="UxElement" StringId="button_continue">Verify</LocalizedString>
        </LocalizedStrings>
      </LocalizedResources>

Restful 服務錯誤訊息

下列識別碼用於 Restful 服務技術設定檔 錯誤訊息:

識別碼 預設值
DefaultUserMessageIfRequestFailed 無法建立與 Restful 服務端點的連線。 Restful 服務 URL: {0}
UserMessageIfCircuitOpen {0} Restful Service URL: {1}
UserMessageIfDnsResolutionFailed 無法解析 restful 服務端點的主機名。 Restful 服務 URL: {0}
UserMessageIfRequestTimeout 無法在逾時限制 {0} 秒內建立與 Restful 服務端點的連線。 Restful 服務 URL: {1}

Restful 服務範例

<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>

Microsoft Entra 多重要素驗證錯誤訊息

下列識別碼用於 Microsoft Entra ID 多重要素驗證技術配置檔 錯誤訊息:

識別碼 預設值
UserMessageIfCouldntSendSms 無法將 SMS 傳送至電話,請嘗試其他電話號碼。
UserMessageIfInvalidFormat 您的電話號碼的格式不正確,請更正,然後再試一次。
UserMessageIfMaxAllowedCodeRetryReached 錯誤碼輸入太多次,請稍後再試一次。
UserMessageIfServerError 無法使用 MFA 服務,請稍後再試一次。
UserMessageIfThrottled 您的要求已節流處理,請稍後再試一次。
UserMessageIfIncorrectOTPCodeEntered 輸入的程式代碼錯誤,請再試一次。

Microsoft Entra 多重要素驗證範例

<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>

Microsoft Entra SSPR

下列識別碼用於 Microsoft Entra ID SSPR 技術配置檔 錯誤訊息:

識別碼 預設值
UserMessageIfChallengeExpired 程式代碼已過期。
UserMessageIfInternalError 電子郵件服務發生內部錯誤,請稍後再試一次。
UserMessageIfThrottled 您已傳送太多要求,請稍後再試一次。
UserMessageIfVerificationFailedNoRetry 您已超過驗證嘗試次數上限。
UserMessageIfVerificationFailedRetryAllowed 驗證失敗,請再試一次。

Microsoft Entra SSPR 範例

<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>

一次性密碼錯誤訊息

下列標識碼用於 一次性密碼技術配置檔 錯誤訊息。

識別碼 預設值 Description
UserMessageIfSessionDoesNotExist No 如果代碼驗證會話已過期,則向用戶顯示的訊息。 它可能是程式代碼已過期,或從未針對指定的標識碼產生程式代碼。
UserMessageIfMaxRetryAttempted No 如果使用者超過允許的驗證嘗試上限,則向用戶顯示的訊息。
UserMessageIfMaxNumberOfCodeGenerated No 如果產生程式代碼已超過允許的嘗試次數上限,則向用戶顯示的訊息。
UserMessageIfInvalidCode No 如果使用者輸入無效的程式代碼,則向用戶顯示的訊息。
UserMessageIfVerificationFailedRetryAllowed No 如果使用者輸入無效的程式代碼,則向用戶顯示的訊息,並允許使用者提供正確的程序代碼。
UserMessageIfSessionConflict No 如果無法驗證程式代碼,則向用戶顯示的訊息。

一次性密碼範例

<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="UserMessageIfMaxNumberOfCodeGenerated">You have exceeded the number of code generation attempts allowed.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidCode">You have entered the wrong code.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationFailedRetryAllowed">That code is incorrect. Please try again.</LocalizedString>
   <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfSessionConflict">Cannot verify the code, please try again later.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

宣告轉換錯誤訊息

下列識別碼用於宣告轉換錯誤訊息:

識別碼 宣告轉換 預設值
UserMessageIfClaimsTransformationBooleanValueIsNotEqual AssertBooleanClaimIsEqualToValue 宣告類型 「inputClaim」 的布爾值比較失敗。
DateTimeGreaterThan AssertDateTimeIsGreaterThan 宣告值比較失敗:提供的左操作數大於右操作數。
UserMessageIfClaimsTransformationStringsAreNotEqual AssertStringClaimsAreEqual 使用 StringComparison “OrdinalIgnoreCase” 的宣告值比較失敗。

宣告轉換範例 1:

此範例顯示本機帳戶註冊的當地語系化訊息。

<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>

宣告轉換範例 2:

此範例顯示本機帳戶密碼重設的當地語系化訊息。

<LocalizedResources Id="api.localaccountpasswordreset.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">You cannot use the old password</LocalizedString>    
  </LocalizedStrings>
</LocalizedResources>

CAPTCHA 顯示控制項使用者介面元素

下列識別碼用於 CAPTCHA 顯示控制項

識別碼 預設值 說明
newCaptcha_arialabel 建立新的 CAPTCHA 當使用者將滑鼠指標移至 CAPTCHA 重新執行圖示上方時,要向使用者顯示的工具提示訊息。
switchCaptchaType_title 將 CAPTCHA 類型切換至 {0} 當使用者將滑鼠指標移至 CAPTCHA 音訊或影像圖示時,要向用戶顯示的工具提示訊息。
captchatype_visual_help 輸入您看到的字元 如果使用者處於可視化模式,使用者輸入 CAPTCHA 程式代碼的輸入方塊中的佔位元文字。
captchatype_audio_title 按音訊按鈕以播放挑戰 如果使用者切換到音訊模式,當使用者將滑鼠指標移至 CAPTCHA 喇叭圖示時,向用戶顯示的工具提示訊息。
captchatype_audio_help 輸入您聽到的字元 如果使用者切換到音訊模式,則輸入方塊中的佔位元文字,用戶輸入 CAPTCHA 程式代碼。
charsnotmatched_error 字元與 CAPTCHA 挑戰不符。 請再試一次 如果使用者輸入錯誤的 CAPTCHA 程式代碼,則向用戶顯示的訊息。
api_error CAPTCHA 控制件上的 API 錯誤 如果在 Azure AD B2C 嘗試驗證 CAPTCHA 程式代碼時發生錯誤,向使用者顯示的訊息。
captcha_resolved 成功! 如果使用者輸入正確的 CAPTCHA 代碼,則向用戶顯示的訊息。
DisplayName 協助我們擊敗 Bot。 CAPTCHA 顯示控件的顯示名稱。

CAPTCHA 顯示控件範例

此範例顯示 CAPTCHA 顯示控制元件的當地語系化訊息。

      <LocalizedResources Id="api.localaccountsignup.en">
        <LocalizedStrings>
          <LocalizedString ElementType="UxElement" StringId="newCaptcha_arialabel">Create new CAPTCHA</LocalizedString>
          <LocalizedString ElementType="UxElement" StringId="switchCaptchaType_title">Switch CAPTCHA type to {0}</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captchatype_visual_help">Enter the characters you see</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captchatype_audio_title">Press audio button to play the challenge</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captchatype_audio_help"> Enter the characters you hear</LocalizedString>
          <LocalizedString ElementType="ErrorMessage"  StringId="charsnotmatched_error"> The characters did not match for CAPTCHA challenge. Please try again</LocalizedString>
          <LocalizedString ElementType="ErrorMessage"  StringId="api_error"> Api error on CAPTCHA control</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captcha_resolved"> Success!</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="captchaControlChallengeCode" StringId="DisplayName">Help us beat the bots</LocalizedString>
        </LocalizedStrings>
      </LocalizedResources>

下一步

如需本地化範例,請參閱下列文章: