Skip to content

Commit 78e421e

Browse files
committed
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
1 parent a10c8df commit 78e421e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/settings.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ onOptionsChanged(function() {
5555
});
5656

5757
opts._categories.forEach(function(x) {
58-
var section = x[0];
59-
var category = x[1];
58+
var section = localization[x[0]] ?? x[0];
59+
var category = localization[x[1]] ?? x[1];
6060

6161
var span = document.createElement('SPAN');
6262
span.textContent = category;

0 commit comments

Comments
 (0)