Skip to content

Commit

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

Fix AUTOMATIC1111#14591 using translated content to do categories mapping
  • Loading branch information
AUTOMATIC1111 authored and ruchej committed Sep 30, 2024
1 parent 2301c59 commit c1a0873
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 c1a0873

Please sign in to comment.