Skip to content

Commit c1a0873

Browse files
AUTOMATIC1111ruchej
authored andcommitted
Merge pull request AUTOMATIC1111#14995 from dtlnor/14591-bug-the-categories-layout-is-different-when-localization-is-on
Fix AUTOMATIC1111#14591 using translated content to do categories mapping
1 parent 2301c59 commit c1a0873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/settings.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ onOptionsChanged(function() {
5555
});
5656

5757
opts._categories.forEach(function(x) {
58-
var section = x[0];
59-
var category = x[1];
58+
var section = localization[x[0]] ?? x[0];
59+
var category = localization[x[1]] ?? x[1];
6060

6161
var span = document.createElement('SPAN');
6262
span.textContent = category;

0 commit comments

Comments
 (0)