Fix ordering locale with underscore
parent
a156ebd31e
commit
560229ddb5
|
@ -2120,8 +2120,9 @@ TABS.osd.initialize = function (callback) {
|
|||
fieldList.append(field);
|
||||
} else {
|
||||
let added = false;
|
||||
let currentLocale = i18n.getCurrentLocale().replace('_', '-');
|
||||
fieldList.children().each(function() {
|
||||
if ($(this).text().localeCompare(field.text(), i18n.getCurrentLocale(), { sensitivity: 'base' }) > 0) {
|
||||
if ($(this).text().localeCompare(field.text(), currentLocale, { sensitivity: 'base' }) > 0) {
|
||||
$(this).before(field);
|
||||
added = true;
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue