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

# Messages personnalisés et traduction

> Cette section décrit comment créer des messages personnalisés et des traductions avec les formulaires.

Vous pouvez personnaliser les messages du formulaire pour offrir à vos utilisateurs une expérience unique. En outre, vous pouvez traduire les composants des formulaires, les erreurs et d’autres messages personnalisés dans d’autres langues pour une expérience localisée.

## Messages

Grâce à l’éditeur de formulaires, vous pouvez personnaliser les messages d’erreur et créer d’autres messages personnalisés pour vos utilisateurs.

### Messages d’erreur

Vous pouvez créer des messages d’erreur personnalisés pour remplacer les messages d’erreur par défaut de vos formulaires.

Pour créer des messages d’erreur personnalisés, suivez les étapes ci-après :

1. Dans Auth0 Dashboard, accédez à **Actions > Forms (Formulaires)**.
2. Sélectionnez **Messages** dans le menu de gauche de l’éditeur de formulaire.
3. Sélectionnez l’onglet **Errors (erreurs)**.
4. Saisissez vos messages d’erreur personnalisés dans les champs appropriés pour remplacer les messages par défaut.
5. Sélectionnez **Publish (Publier)** pour enregistrer.

### Messages personnalisés

Vous pouvez créer des messages personnalisés à ajouter aux messages par défaut pour une expérience de formulaire encore plus personnalisée. Par exemple, vous pouvez ajouter un message personnalisé qui s’affiche aux utilisateurs lorsqu’une action débouche sur une erreur dans un flux.

#### Créer des messages personnalisés

Pour créer des messages personnalisés, suivez les étapes ci-après :

1. Dans le menu de gauche de l’éditeur de formulaires, sélectionnez **Messages**.
2. Sélectionnez l’onglet **Custom (Personnalisés)** , puis **Add New Item (Ajouter un nouvel élément)**.
3. À gauche, ajoutez une clé unique pour votre message\*\*.\*\* Ensuite, **saisissez** votre message personnalisé dans le champ à droite.
4. Sélectionnez **Publish (Publier)** pour enregistrer.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/2PlCFpcwb3WA3wF1/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?fit=max&auto=format&n=2PlCFpcwb3WA3wF1&q=85&s=5261f5bb04e237ea06156dd37f305e6d" alt="Dashboard > Forms > Custom messages and translations > Custom message" data-og-width="704" width="704" data-og-height="539" height="539" data-path="docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/2PlCFpcwb3WA3wF1/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=280&fit=max&auto=format&n=2PlCFpcwb3WA3wF1&q=85&s=206a3cf3dc3f130550b341696abf7c56 280w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/2PlCFpcwb3WA3wF1/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=560&fit=max&auto=format&n=2PlCFpcwb3WA3wF1&q=85&s=7b61122d209445b67949091fc8f83b82 560w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/2PlCFpcwb3WA3wF1/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=840&fit=max&auto=format&n=2PlCFpcwb3WA3wF1&q=85&s=ab091346a8984699a9d62a6636e7b6a3 840w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/2PlCFpcwb3WA3wF1/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=1100&fit=max&auto=format&n=2PlCFpcwb3WA3wF1&q=85&s=88fde557a6b4be94d7a2d18413620969 1100w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/2PlCFpcwb3WA3wF1/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=1650&fit=max&auto=format&n=2PlCFpcwb3WA3wF1&q=85&s=68de7ffe91568da72e44f716645ef88b 1650w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/2PlCFpcwb3WA3wF1/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=2500&fit=max&auto=format&n=2PlCFpcwb3WA3wF1&q=85&s=dfe8680e58d45b6692a4800dcede5c55 2500w" />
</Frame>

#### Ajouter des messages personnalisés à vos formulaires

Pour référencer vos messages personnalisés dans vos formulaires, utilisez la fonction `{{t(’custom_unique_key’)}}` avec la clé unique du message personnalisé.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/69zEjxDbwjK2aJkN/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?fit=max&auto=format&n=69zEjxDbwjK2aJkN&q=85&s=21c24abd712372ef20c83e3884515f2c" alt="Dashboard > Forms > Custom messages and translations > Translation function" data-og-width="450" width="450" data-og-height="449" height="449" data-path="docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/69zEjxDbwjK2aJkN/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=280&fit=max&auto=format&n=69zEjxDbwjK2aJkN&q=85&s=416ad70067e02bc7a486a8fba5c69155 280w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/69zEjxDbwjK2aJkN/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=560&fit=max&auto=format&n=69zEjxDbwjK2aJkN&q=85&s=db218081aeb5d168c068c65290421114 560w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/69zEjxDbwjK2aJkN/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=840&fit=max&auto=format&n=69zEjxDbwjK2aJkN&q=85&s=3c571ffbb5bf787d6692c73dc23a9135 840w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/69zEjxDbwjK2aJkN/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=1100&fit=max&auto=format&n=69zEjxDbwjK2aJkN&q=85&s=416ba8a1ecb4f0db14ce2ec5c8097980 1100w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/69zEjxDbwjK2aJkN/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=1650&fit=max&auto=format&n=69zEjxDbwjK2aJkN&q=85&s=040c16771c6931aa9c12119981ee3e48 1650w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/69zEjxDbwjK2aJkN/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=2500&fit=max&auto=format&n=69zEjxDbwjK2aJkN&q=85&s=f02c028bd0022eba322fa519e533680b 2500w" />
</Frame>

## Traductions

Vous pouvez utiliser la fonctionnalité Translations (traduction) pour créer une expérience utilisateur internationale pour vos formulaires. Cette fonctionnalité s’appuie sur la langue du navigateur de l’utilisateur pour déterminer la langue appropriée pour vos formulaires.
Par défaut, des traductions pour certains messages d’erreur standard sont fournies en espagnol. Cependant, pour promouvoir une expérience utilisateur de qualité, vous pouvez définir les traductions de vos composants de formulaire, des erreurs et des messages personnalisés dans la langue de votre choix.

Pour activer les traductions, suivez les étapes ci-dessous :

1. Dans Auth0 Dashboard, accédez à **Actions > Forms (Formulaires)**.
2. Sélectionnez **Translations (Traductions)** dans le menu de gauche de l’éditeur de formulaire.
3. Cochez **Enable additional languages (Activer des langues supplémentaires)**.
4. Sélectionnez les langues souhaitées dans le menu déroulant **Additional languages (Langues supplémentaires)**.

### Traduire les messages

Avec l’éditeur de langue, vous pouvez définir des traductions pour vos composants de formulaire, erreurs et autres messages personnalisés.

Pour définir vos traductions, suivez les étapes ci-après :

1. Sélectionnez la langue souhaitée dans la liste déroulante **Select language (Sélectionner la langue)**.
2. Sélectionnez l’un des onglets suivants pour commencer à définir vos traductions :

   1. **Components (Composants)**
   2. **Errors (Erreurs)**
   3. **Custom (Personnalisés)**
3. Pour chaque champ disponible, fournissez vos traductions si nécessaire.
4. Sélectionnez **Publish (Publier)** pour enregistrer.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/6CBNFLhgCmft1NWJ/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?fit=max&auto=format&n=6CBNFLhgCmft1NWJ&q=85&s=6e8f25f073e1838166d14a6116bdbda2" alt="Dashboard > Forms > Custom messages and translations > Translation message" data-og-width="701" width="701" data-og-height="885" height="885" data-path="docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/6CBNFLhgCmft1NWJ/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=280&fit=max&auto=format&n=6CBNFLhgCmft1NWJ&q=85&s=ca1fe7a3ecf9ed9929ae608f19e6e23c 280w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/6CBNFLhgCmft1NWJ/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=560&fit=max&auto=format&n=6CBNFLhgCmft1NWJ&q=85&s=af1d766fa3aa373176835ab6bccbc092 560w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/6CBNFLhgCmft1NWJ/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=840&fit=max&auto=format&n=6CBNFLhgCmft1NWJ&q=85&s=5fc86ac07d171e672a0247469bc28de3 840w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/6CBNFLhgCmft1NWJ/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=1100&fit=max&auto=format&n=6CBNFLhgCmft1NWJ&q=85&s=9b96eaa885d2ef0aabdf8b142244b75c 1100w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/6CBNFLhgCmft1NWJ/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=1650&fit=max&auto=format&n=6CBNFLhgCmft1NWJ&q=85&s=b6afa448ccdf05c45a8b87e2185c0952 1650w, https://mintcdn.com/docs-dev-docs-ai-docs-migration-poc/6CBNFLhgCmft1NWJ/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=2500&fit=max&auto=format&n=6CBNFLhgCmft1NWJ&q=85&s=d8854100dc7833a1134194aeff740fc3 2500w" />
</Frame>
