Skip to content

Wrong fallback locale #575

@BathoryPeter

Description

@BathoryPeter

How to reproduce

Initialize multipleSelect with a locale value that is not exists in multiple-select-locale-all.js:

$('#my-select').multipleSelect({
      locale: 'xx-YY',
});

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 of defaults:

$.extend($.fn.multipleSelect.locales, $.fn.multipleSelect.locales['zh-TW']);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions