Skip to content

Commit

Permalink
Merge pull request #14995 from dtlnor/14591-bug-the-categories-layout…
Browse files Browse the repository at this point in the history
…-is-different-when-localization-is-on

Fix #14591 using translated content to do categories mapping
  • Loading branch information
AUTOMATIC1111 committed Feb 26, 2024
2 parents 900419e + f537e5a commit ca8dc2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ onOptionsChanged(function() {
});

opts._categories.forEach(function(x) {
var section = x[0];
var category = x[1];
var section = localization[x[0]] ?? x[0];
var category = localization[x[1]] ?? x[1];

var span = document.createElement('SPAN');
span.textContent = category;
Expand Down

0 comments on commit ca8dc2b

Please sign in to comment.