https://discord.gg/botpress logo
Single-Choice dropdown shows “Select” instead of “...
# 🤝help
e
Hi everyone, Here’s my setup: The Translator Agent is enabled. I have an Execute Code step at the start of my bot that forces the language to German. All bot output text is correctly in German. Problem: For Single-Choice cards (Single-Choice Prompt), the default label “Select” still appears at the top, even though the language is set to German. How to fix that? https://cdn.discordapp.com/attachments/1433478762271608914/1433478762464411719/image.png?ex=6904d6a1&is=69038521&hm=bdb8acc8168c0dacfc16da3616c80ad52bdc58fcfc180ea51251b9dcfad0523f&
w
hi laurens!! i think the translator only translates generated text. for that one, you'll need custom css in your webchat configuration
do you want me to get you the code?
e
Hey Shen, thanks a lot for your quick reply. If it’s not too much trouble, I’d really appreciate it if you could share the CSS code with me. That would be super helpful — thanks so much in advance! 😊
w
of course!!! you want the button to say "Auswählen" right?
e
yes!
w
here you go - just paste this in the "Styles" tab in your webchat "Theme" settings
Copy code
css
.bpMessageBlocksDropdownButtonText {
  text-indent: -9999px;
  line-height: 0;
}

.bpMessageBlocksDropdownButtonText::after {
  content: "Auswählen...";
  text-indent: 0;
  display: block;
  line-height: normal;
}
e
Works perfectly! Thank you so much
w
message has been deleted
l
@User youre the best dude 🫶