> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Customize Translation of Lock Password Options

> Translate the password requirement strings shown by Auth0 Lock so the password policy text users see during signup matches their locale.

You can customize the translation of the following Lock password features in your own code:

* Password Strength
* Password History
* Change Password widget

To customize any of these features, you must include version 1.1 or higher of the Change Password widget library:

`<script src="https://cdn.auth0.com/js/change-password-1.1.min.js"></script>`

To translate the text of each of the Lock password features, include the following code, replacing all strings with text in the desired language:

### Password Strength

```js lines theme={null}
dict: {
    passwordStrength: {
      containsAtLeast: "Contain at least %d of the following %d types of characters:",
      identicalChars: "No more than %d identical characters in a row (such as, \"%s\" not allowed)",
      nonEmpty: "Non-empty password required",
      numbers: "Numbers (such as 0-9)",
      lengthAtLeast: "At least %d characters in length",
      lowerCase: "Lower case letters (a-z)",
      shouldContain: "Should contain:",
      specialCharacters: "Special characters (such as !@#$%^&*)",
      upperCase: "Upper case letters (A-Z)"
    }
}
```

### Password History

```js lines theme={null}
dict: {
  passwordHistoryError: "Password has previously been used"
}
```

### Change Password widget

```js lines theme={null}
dict: {
    passwordPlaceholder: "your new password",
    passwordConfirmationPlaceholder: "confirm your new password",
    passwordConfirmationMatchError: "Please ensure the password and the confirmation are the same.",
    successMessage: "Your password has been reset successfully.",
    configurationError: "An error occurred. There appears to be a misconfiguration in the form.",
    networkError: "The server cannot be reached, there is a problem with the network.",
    timeoutError: "The server cannot be reached, please try again.",
    serverError: "There was an error processing the password reset.",
    headerText: "Enter a new password for<br />{email}",
    title: "Change Password",
    weakPasswordError: "Password is too weak."
}
```
