bootstrap-multiselect icon indicating copy to clipboard operation
bootstrap-multiselect copied to clipboard

localization

Open pws2016 opened this issue 4 years ago • 1 comments

Hello, is possible to change the language of your script? and how?

pws2016 avatar May 15 '20 09:05 pws2016

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.

eccodolf avatar Sep 26 '22 14:09 eccodolf