Merge pull request #14995 from dtlnor/14591-bug-the-categories-layout-is-different-when-localization-is-on

Fix #14591 using translated content to do categories mapping
This commit is contained in:
AUTOMATIC1111 2024-02-26 07:12:31 +03:00 committed by GitHub
commit ca8dc2bde2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;