Skip to content

Commit 11de751

Browse files
authored
Fix ordering locale with underscore (#1561)
Fix ordering locale with underscore
2 parents 3a0e183 + 560229d commit 11de751

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/tabs/osd.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2120,8 +2120,9 @@ TABS.osd.initialize = function (callback) {
21202120
fieldList.append(field);
21212121
} else {
21222122
let added = false;
2123+
let currentLocale = i18n.getCurrentLocale().replace('_', '-');
21232124
fieldList.children().each(function() {
2124-
if ($(this).text().localeCompare(field.text(), i18n.getCurrentLocale(), { sensitivity: 'base' }) > 0) {
2125+
if ($(this).text().localeCompare(field.text(), currentLocale, { sensitivity: 'base' }) > 0) {
21252126
$(this).before(field);
21262127
added = true;
21272128
return false;

0 commit comments

Comments
 (0)