Closed mick-anderson24 closed 3 years ago
Thank you for your feedback! We will review and update as appropriate.
Using the following xml the result does configure the placeholder. Could double check your code?
<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">#2 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">#1 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>
Here is the xml I am setting:
<ContentDefinition Id="api.phonefactor">
<LoadUri>https://<<Tenant>>.blob.core.windows.net/<<Storage Container>>/multifactor-1.0.0.html</LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:multifactor:1.2.0</DataUri>
<Metadata>
<Item Key="DisplayName">Multi-factor authentication page</Item>
</Metadata>
<LocalizedResourcesReferences MergeBehavior="Prepend">
<LocalizedResourcesReference Language="en" LocalizedResourcesReferenceId="api.phonefactor.en" />
</LocalizedResourcesReferences>
</ContentDefinition>
<Localization Enabled="true">
<SupportedLanguages DefaultLanguage="en" MergeBehavior="ReplaceAll">
<SupportedLanguage>en</SupportedLanguage>
<SupportedLanguage>es</SupportedLanguage>
</SupportedLanguages>
<LocalizedResources Id="api.phonefactor.en">
<LocalizedStrings>
<LocalizedString ElementType="UxElement" StringId="countryList">{"DEFAULT":"Country/Region","CA":"Canada","MX":"Mexico","GB":"United Kingdom","US":"United States"}</LocalizedString>
<LocalizedString ElementType="UxElement" StringId="verification_code_input_placeholder_text">#Verification code</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
</Localization>
I would expect that verification code input text field would have the placeholder of #Verification code
Thanks, checking. I'll keep you posted ASAP.
Localization of the placeholder is not supported. I'm closing this issue.
I am trying to setup the localization for the api.phonefactor and i'm trying to set a placeholder text for where the verification code is suppose to entered in at. Based on the information in the docs I would've expected filling in this field to set the placeholder text in that input field but it doesn't appear that is correct or working
verification_code_input_placeholder_text | Verification code
Here is the xml in the custom policy for it but no placeholder text is visible on the phone factor
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.