Change hover over message for send-button
# 🤝help
i
I want to dynamically change the message that defaults to "Send Message" to a different language when the user opens the bot in a webchat and has already selected a different language like French. Is this possible?
f
Hey there, You can try and add locale to your configurable script. Then you would set it to 'browser' to be the same language as the users browser
If you want to use the language that the translator agent is using you would have to do it a bit differently
You would still use locale but I think you would have to use mergeConfig
Send a custom event from your chatbot to your website and then mergeConfig
I made one that changes based on the language set by the user
i
This is perfect! It solves my problem.
g
I thought it was the composer place holder but it's the message above the send button lol
I actually didn't think about that
@fresh-fireman-491 is it possible to have the botpress composer placeholder translated to the default language of the browser ?
f
Should be like that as a standard
You can see it in the docs
Should be 'browser'
g
@fresh-fireman-491 for example this doesn't seem to work even though I set my browser to french :
it still says Chat with Calendly
f
Oh right that. I don't think it changes with
It's text set by you
Just like the description of the bot
But you can just set it manually with mergeConfig
g
But can I make it change based on the user's browser language ?
f
Not sure. Probably best to create a separate help post about that
Hey there Feel free to create a separate help post about that 🙂