pbauerochse / searchable-option-list

a jquery plugin for a searchable optionlist
MIT License
79 stars 54 forks source link

Extends SearchableOptionList.prototype #56

Closed mLaribi closed 7 years ago

mLaribi commented 7 years ago

Hi, I'm trying to extends the plugin prototype to add french translation,

Using these lines of codes :

(function ($) {

    $.extend($.SearchableOptionList.prototype.defaults.texts, {
                noItemsAvailable: 'Aucune entrée trouvée',
                selectAll: 'Tous sélectionner',
                selectNone: 'Ne rien sélectionner',
                quickDelete: '&fois;',
                searchplaceholder: 'Cliquez pour une recherche',
                loadingData: 'Chargement des données...',
                itemsSelected: '{$a} Sélections'
    });

})(jQuery);

But I got the error : Cannot read property 'prototype' of undefined

Can someone help me? Is there a translation for this plugin?

Thank you in advance