Set Language in Automatic Response
# 🤝help
e
Hello, I am currently building a bot for a client, and this bot needs to operate in French. The bot is designed to collect user information such as their phone number, name, etc. During the interaction, users have the option to cancel if they choose not to provide, for example, their phone number. In such cases, we can modify the cancellation prompt (simple text), but the response remains automatic and does not change to "Oui" or "Non", it stays as "Yes" or "No". I tried setting the bot's language to French using this tutorial, but it did not work. https://botpress.com/docs/cloud/getting-started/languages/ Any idea how to modify the automatic answers in the confirmation? I'm usign the Phone Number Card and the Cancel option "Confirm before cancelling" Tnx https://cdn.discordapp.com/attachments/1233488298668720231/1233488299180429435/Screenshot_2024-04-26_at_2.24.48_PM.png?ex=66352fff&is=6633de7f&hm=3b8932f17a2fad3807b388ece6db2b0b94d6d4b717c93986fdba044374cb2a53& https://cdn.discordapp.com/attachments/1233488298668720231/1233488299516104754/Screenshot_2024-04-26_at_2.24.59_PM.png?ex=66352fff&is=6633de7f&hm=ce96c3c68f679fac910c1a4f6930c2185ec8f348b81d8a05865f021fa9aeeaa4& https://cdn.discordapp.com/attachments/1233488298668720231/1233488299771822200/Screenshot_2024-04-26_at_2.31.42_PM.png?ex=66352fff&is=6633de7f&hm=31b93953a0cacfeea6de38747a0d4ed7e117ddcf670caf9ccd03237a47ac8c9d&
We'll I found that event if the tutorial use fr, it seems that we have to use French to set the Bot language. I'll leave it here for anyone who coulfd face this problem too.
Finally, my problem is not fixed Well, I found that I can set language in a code card with user.TranslatorAgent.language = 'fr' or I can use the Set User Language card and set fr in the input. Well, both ways I have the same result. If I use fr as value, all the conversation will be in French, except the automatic response in the Phone Number Card -> Cancel option "Confirm before cancelling". There, the user choice will display in English : Yes or No If I use French as value, then the Phone Number Card -> Cancel option "Confirm before cancelling" will display in French : Oui or Non. But in the conversation at some specific moments it will translate the hardcoded text to an English version. Weird no? Anyone can help? I want my bot to be in French only.