-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8.0-HF15, 5.9.4
-
Fix Version/s: 5.8.0-HF16, 5.9.5
-
Component/s: Layouts & Widgets
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)