mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
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:
parent
a10c8df876
commit
78e421e4ea
@ -55,8 +55,8 @@ onOptionsChanged(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
opts._categories.forEach(function(x) {
|
opts._categories.forEach(function(x) {
|
||||||
var section = x[0];
|
var section = localization[x[0]] ?? x[0];
|
||||||
var category = x[1];
|
var category = localization[x[1]] ?? x[1];
|
||||||
|
|
||||||
var span = document.createElement('SPAN');
|
var span = document.createElement('SPAN');
|
||||||
span.textContent = category;
|
span.textContent = category;
|
||||||
|
Loading…
Reference in New Issue
Block a user