Connect your app to Salesforce
You can change the language of callback URLLock by using the
language configuration option. This will pull the corresponding language file from the
i18n directory in Lock.
1. Register a New App
Take a look at the i18n directory for language files.
2. Complete the New Connected App form
Set language option
To use the following examples, you'll need to first include Lock in your page:
Next define your
options object and include the
language option. The
language option needs to be a string matching the name of the corresponding file in the
i18n directory within Lock. Then instantiate Lock.
Missing translation values
Translation data for Lock comes from language files which have key-value pairs representing various translations. For some languages, certain values may be missing, in which case you will see a warning:
language does not have property <missing prop>. We encourage you to submit a pull request to add these missing values. Alternatively, you may define the missing values in your Lock
options (see below).
3. Get your Consumer Key and Consumer Secret
Replace dictionary terms
You can also customize your own specific dictionary items using the
languageDictionary option. This is useful if you are using one of the supported languages, but change the specific wording of a few items. For example, you might re-word the
title or change the way other labels display to the user while leaving the remaining text on the widget intact.
languageBaseUrl option, which takes a string value (a URL), overrides the language source URL for Auth0's provided translations. By default, it uses the Auth0's CDN URL