Auth0 Home Blog Docs

How to customize error messages in lockPasswordless?

angular
passwordless
angularjs
lock-passwordless

#1

Hi,

How can I customize the error messages in lockPasswordless.?

I have seen this: https://auth0.com/docs/libraries/lock/v11/customizing-error-messages but that doesn’t work for lockPasswordless.

I want to translate the error messages to other languages.

56

I use these versions:
auth0-lock: 11.5.2
auth0-lock-passwordless version: 2.2.3


#3

:wave: @harald.andertun I believe Lock Passwordless does not support localization out of the box, so we would need to rebuild the dictionary (as defined here: https://github.com/auth0/lock-passwordless/blob/df183e846e76b45ce874f87eb6721ca575da21f0/src/dict/dicts.js) lines 20-33 represent the error messages. An override passed to the error attribute could look something like :

dict: {
   ...
      passwordless: {
               "bad.tenant": "Lorem Ipsum",
           ...
          },
     ...

#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.