Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong fallback locale #575

Open
BathoryPeter opened this issue Sep 6, 2021 · 0 comments
Open

Wrong fallback locale #575

BathoryPeter opened this issue Sep 6, 2021 · 0 comments

Comments

@BathoryPeter
Copy link
Contributor

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']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant