diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-26 04:12:31 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2024-02-26 04:35:32 +0000 |
commit | 78e421e4ea833e163367f26232656256ddc0bbc8 (patch) | |
tree | c42bff6839193ea008de74cb1bc176bbc5411cb6 /javascript | |
parent | a10c8df8761c01801bac60d7977ae7e997ab51b0 (diff) | |
download | stable-diffusion-webui-gfx803-78e421e4ea833e163367f26232656256ddc0bbc8.tar.gz stable-diffusion-webui-gfx803-78e421e4ea833e163367f26232656256ddc0bbc8.tar.bz2 stable-diffusion-webui-gfx803-78e421e4ea833e163367f26232656256ddc0bbc8.zip |
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
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/settings.js b/javascript/settings.js index e6009290..b2d981c2 100644 --- a/javascript/settings.js +++ b/javascript/settings.js @@ -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; |