bootstrap-multiselect
bootstrap-multiselect copied to clipboard
localization
Hello, is possible to change the language of your script? and how?
I use django template translation system as it renders js "as is":
{% load i18n %}
...
buttonText: function (options, select) {
if (options.length === 0) {
return '{% translate "No option selected" %}';
} else if (options.length > 3) {
return '{% translate "More than 3 options selected" %}';
} else { ...
Another option - load some js translation function and use it in multiselect code.