While @Tom Nijs's answer does fix your problem, it is not good practise to change the source code of the library that you are using. An example where you could lose your modified code is when you update the Auth0 Lock library. Keeping track of all these pieces of modified code between different versions of libraries is a real hassle.
Instead, I would suggest to do the following:
The Auth0 Lock exposes the languageDictionary
property in the settings property.
So to continue with your provided code snippet, you could do this in the lock's settings:
`theme: {
logo: 'https://example.com/logo58px.png'
},
languageDictionary: {
title: 'Custom title here',
forgotPasswordAction: 'Custom lost password phrase here'
}`
If you are looking to customise more properties/text, you can just add them to the languageDictionary
object, all the possible properties can be found here => https://github.com/auth0/lock/blob/master/src/i18n/en.js
The property names depend on the Auth0 Lock version, above configuration is for Auth0 Lock 10.0.0+
Property names of earlier lock versions are also still available in Auth0's documentation.