> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging-fix-xaa-resource-app-isv-updates.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-staging-fix-xaa-resource-app-isv-updates/lz2NaBUqDuo-6hUj/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?fit=max&auto=format&n=lz2NaBUqDuo-6hUj&q=85&s=adafa82f0e0db96023d3223612e5fa02" 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-staging-fix-xaa-resource-app-isv-updates/lz2NaBUqDuo-6hUj/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=280&fit=max&auto=format&n=lz2NaBUqDuo-6hUj&q=85&s=d271eaac01d63fd0ca9fd3182ed0d57e 280w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/lz2NaBUqDuo-6hUj/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=560&fit=max&auto=format&n=lz2NaBUqDuo-6hUj&q=85&s=4db8deae2bf207992928aa6e6928d619 560w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/lz2NaBUqDuo-6hUj/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=840&fit=max&auto=format&n=lz2NaBUqDuo-6hUj&q=85&s=56bcc7223eb21dfd9eed9af09e188807 840w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/lz2NaBUqDuo-6hUj/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=1100&fit=max&auto=format&n=lz2NaBUqDuo-6hUj&q=85&s=baf8ac28d17061db200d841cf34f1470 1100w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/lz2NaBUqDuo-6hUj/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=1650&fit=max&auto=format&n=lz2NaBUqDuo-6hUj&q=85&s=3ef895a5a834ad29e24c4eaf83eaf29a 1650w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/lz2NaBUqDuo-6hUj/docs/images/fr-ca/cdy7uua7fh8z/1upBOwWqntPPQF8fqGeN6T/a65674d05c823c5fbe703265558693e4/custom-message.png?w=2500&fit=max&auto=format&n=lz2NaBUqDuo-6hUj&q=85&s=e2427c1463323c5ab7df94d8de43b183 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-staging-fix-xaa-resource-app-isv-updates/VlUVxmOWxlUlL1Hk/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?fit=max&auto=format&n=VlUVxmOWxlUlL1Hk&q=85&s=33ef8109b1e178c578d66c410c76b36e" 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-staging-fix-xaa-resource-app-isv-updates/VlUVxmOWxlUlL1Hk/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=280&fit=max&auto=format&n=VlUVxmOWxlUlL1Hk&q=85&s=60b69ad066d3e405ea2052a357dc3e97 280w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/VlUVxmOWxlUlL1Hk/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=560&fit=max&auto=format&n=VlUVxmOWxlUlL1Hk&q=85&s=cfb4893c9118cd0e3ff7cbcb8672d847 560w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/VlUVxmOWxlUlL1Hk/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=840&fit=max&auto=format&n=VlUVxmOWxlUlL1Hk&q=85&s=6b2ba00053640d8954b985396204c59c 840w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/VlUVxmOWxlUlL1Hk/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=1100&fit=max&auto=format&n=VlUVxmOWxlUlL1Hk&q=85&s=d93567f9ff8902acaed7dacf572374b8 1100w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/VlUVxmOWxlUlL1Hk/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=1650&fit=max&auto=format&n=VlUVxmOWxlUlL1Hk&q=85&s=99c96c6bfe6985c040b0d07dd660fa76 1650w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/VlUVxmOWxlUlL1Hk/docs/images/fr-ca/cdy7uua7fh8z/45p4V7w5gw7DQZyJ08ECSH/d040720d9aa19f6e97e21defcd428e55/translation-function.png?w=2500&fit=max&auto=format&n=VlUVxmOWxlUlL1Hk&q=85&s=9c00ec6066ad54977fc7da2802e6f2b5 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-staging-fix-xaa-resource-app-isv-updates/pBd88Y26Vx-zLdw9/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?fit=max&auto=format&n=pBd88Y26Vx-zLdw9&q=85&s=e5811585690fa0448f5aa01f05e3b42f" 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-staging-fix-xaa-resource-app-isv-updates/pBd88Y26Vx-zLdw9/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=280&fit=max&auto=format&n=pBd88Y26Vx-zLdw9&q=85&s=30e2653994d624a941b19cabb350f683 280w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/pBd88Y26Vx-zLdw9/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=560&fit=max&auto=format&n=pBd88Y26Vx-zLdw9&q=85&s=e8cae12f0e2670d01190f85f5a182a1c 560w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/pBd88Y26Vx-zLdw9/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=840&fit=max&auto=format&n=pBd88Y26Vx-zLdw9&q=85&s=07486c4e2b51d9d69914e917843fbe11 840w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/pBd88Y26Vx-zLdw9/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=1100&fit=max&auto=format&n=pBd88Y26Vx-zLdw9&q=85&s=4726aca0c1c61bd377a4e7d68afa49e4 1100w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/pBd88Y26Vx-zLdw9/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=1650&fit=max&auto=format&n=pBd88Y26Vx-zLdw9&q=85&s=0ae51b16dc7812a0390a799ef572c228 1650w, https://mintcdn.com/docs-staging-fix-xaa-resource-app-isv-updates/pBd88Y26Vx-zLdw9/docs/images/fr-ca/cdy7uua7fh8z/5HY9FA6HZct2XNv5K4pCHY/c5977a7825e15285c3d77c2ca1e299a8/translation-message.png?w=2500&fit=max&auto=format&n=pBd88Y26Vx-zLdw9&q=85&s=2d6be7279680557f6235a95ad20ac85d 2500w" />
</Frame>
