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

> Découvrez comment personnaliser la traduction des options de mot de passe de Lock.

# Personnaliser la traduction des options de mot de passe de Lock

Vous pouvez personnaliser la traduction des fonctionnalités de mot de passe suivantes de Lock dans votre propre code :

* Force du mot de passe
* Historique des mots de passe
* widget de changement de mot de passe

Pour personnaliser l’une ou l’autre de ces fonctionnalités, vous devez inclure la version 1.1 ou ultérieure de la bibliothèque du widget de changement de mot de passe :

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

Pour traduire le texte de chacune des fonctionnalités de mot de passe de Lock, incluez le code suivant en remplaçant toutes les chaînes par le texte de la langue souhaitée :

<div id="password-strength">
  ### Force du mot de passe
</div>

```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)"
    }
}
```

<div id="password-history">
  ### Historique des mots de passe
</div>

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

<div id="change-password-widget">
  ### Widget de changement de mot de passe
</div>

```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."
}
```
