Hello,
Im using auth0Lock sdk and want to customize the social connection button text.
I know that i can change the displayName property, but it is not enough, because the text i see on the button is “Sign up with [displayName]”, but i want to change the whole button text. Actually i want to change it to “Sign In with [displayName]”. How can i do it?
all my users are signing in and not signing up, so the button text doesn’t make sense to them.
Thanks
jonathan
Hi @jonathanhip
You can customize the whole text using the languageDictionary property from Lock as:
languageDictionary = {
signUpWithLabel: "Sign In with %s"
};
You can read more about it here:
https://auth0.com/docs/libraries/lock/lock-configuration#languagedictionary-object-
passwordlessSMSCodeInstructions: 'An SMS with the code has been sent to %s.',
passwordlessSMSInstructions: 'Enter your phone to sign in<br/>or create an account',
phoneNumberInputPlaceholder: 'your phone number',
resendCodeAction: 'Did not get the code?',
resendLabel: 'Resend',
resendingLabel: 'Resending...',
retryLabel: 'Retry',
sentLabel: 'Sent!',
showPassword: 'Show password',
signUpTitle: 'Sign Up',
signUpLabel: 'Sign Up',
signUpSubmitLabel: 'Sign Up',
signUpTerms: 'By signing up, you agree to our terms of service and privacy policy.',
signUpWithLabel: 'Sign up with %s',
socialLoginInstructions: '',
socialSignUpInstructions: '',
ssoEnabled: 'Single Sign-On enabled',
submitLabel: 'Submit',
unrecoverableError: 'Something went wrong.<br />Please contact technical support.',
usernameFormatErrorHint:
'Use %d-%d letters, numbers and the following characters: "_", ".", "+", "-"',
1 Like
Great!
thank you very much
1 Like
No worries! We are here for you!
system
Closed
March 17, 2021, 1:02pm
5
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.