Open BathoryPeter opened 3 years ago
Initialize multipleSelect with a locale value that is not exists in multiple-select-locale-all.js:
locale
$('#my-select').multipleSelect({ locale: 'xx-YY', });
All the format methods returns labels with zh-TW locale instead of English.
I'm not sure where is the problem, but its suspicious to me that in localization files locales should be extended instead of defaults:
locales
defaults
$.extend($.fn.multipleSelect.locales, $.fn.multipleSelect.locales['zh-TW']);
How to reproduce
Initialize multipleSelect with a
locale
value that is not exists in multiple-select-locale-all.js:All the format methods returns labels with zh-TW locale instead of English.
Possible fix
I'm not sure where is the problem, but its suspicious to me that in localization files
locales
should be extended instead ofdefaults
: