Translate "Select all" option in multiselect widget

Hi!

I would like to translate the option “Select all” to my native language in the multiselect widget.

Is there a way to custom that option?

Thanks!

Hey there, thanks for your question and welcome to the Streamlit community! :balloon: As of now, Streamlit does not provide a built-in parameter or API to customize or translate the “Select all” option in the st.multiselect widget. The label is hardcoded in the frontend and isn’t user-configurable through Python or widget arguments at this time, so you can’t natively change its text to another language or customize it directly in your app code.

If this feature is important for your use case, you can upvote or comment on related feature requests in the Streamlit GitHub repo. Some users have tried CSS hacks to change placeholder text, but these are not robust for the “Select all” label and may break with updates. If you have a minimum reproducible example or want to brainstorm workarounds, feel free to share your code and let the community jump in! For more details, see this discussion: Multiselect “Select all” option customization.

Sources: