The locales provided by select2 are inconsistent. Some locales such as:
- select2_locale_zh-CN.js and select2_locale_zh-TW.js
- select2_locale_pt-PT.js and select2_locale_pt-BR.js
can't just be loaded because they have country code while other locales don't.
A solution is to add:
- select2_locale_zh.js (copied from select2_locale_zh-CN.js)
- select2_locale_pt.js (copied from select2_locale_pt-PT.js)
(we'll loose the support for Brazilian and Taiwanese which will respectively fall back Portuguese and Chinese which is better than nothing)