Topic: Multiselect translation
mjenny free asked 4 years ago
Expected behavior multiselect text "select all" can be translated
Actual behavior the attribute "selectAllLabel" is not valid HTML, as it contains capital letters. Asp core/Razor automatically converts such attributes to lowercase, whereby the attribute is ignored by MDB and the text can not be translated.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.14.1
- Device: PC
- Browser: Firefox
- OS: Linux
- Provided sample code: No
- Provided link: No
Grzegorz Bujański staff commented 4 years ago
Hi. Try use
data-label-select-all
attribute.mjenny free commented 4 years ago
Hi Grzegorz, this did the trick, thank you.
I have also found and added "data-label-options-selected" for the "options selected" translation.
Maybe you should update the documentation for other users: https://mdbootstrap.com/docs/jquery/forms/multiselect/
Grzegorz Bujański staff commented 4 years ago
At the end of the documentation we added this note: The options are the same as in the Single Select, described here, And we added link to: https://mdbootstrap.com/docs/jquery/forms/select/#select-options-and-attributes