Custom text
更新时间:
复制 MD 格式
You can customize the display text for the CAPTCHA component and the secondary authentication component that it triggers.
Customize verification text
Use the upLang parameter during initialization to customize the text for the secondary authentication component. Use parameters such as default_txt, success_txt, scanning_txt, and fail_txt to customize the text for the CAPTCHA component.
AWSC.use("ic", function (state, module) {
window.ic = module.init({
...
...
// Text for the initial state of the CAPTCHA component.
default_txt: 'Click the button to start CAPTCHA verification',
// Text for the success state of the CAPTCHA component.
success_txt: 'Verification successful',
// Text for the failure (intercepted) state of the CAPTCHA component.
fail_txt: 'Verification failed. Click the button to refresh.',
// Text for the in-progress state of the CAPTCHA component.
scaning_txt: 'Verifying...',
...
...
// Text for the secondary authentication component states.
upLang: {
'cn': {
// Loading state prompt.
'LOADING': "Loading...",
// Waiting-for-slide state prompt.
'SLIDE': "Slide right to verify",
// Success state prompt.
'SUCCESS': "Verification successful",
// Failure state prompt (intercepted).
'ERROR': "Sorry, a network error occurred...",
// Failure state prompt (intercepted).
'FAIL': "Verification failed, please retry"
}
}
});
})该文章对您有帮助吗?