Skip to content

Commit

Permalink
fix #14591 - using translated content to do categories mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dtlnor committed Feb 22, 2024
1 parent 0a27193 commit bf70b11
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 = getTranslation(x[0]) ?? x[0];

Check failure on line 58 in javascript/settings.js

View workflow job for this annotation

GitHub Actions / eslint

'getTranslation' is not defined
var category = getTranslation(x[1]) ?? x[1];

Check failure on line 59 in javascript/settings.js

View workflow job for this annotation

GitHub Actions / eslint

'getTranslation' is not defined

var span = document.createElement('SPAN');
span.textContent = category;
Expand Down

0 comments on commit bf70b11

Please sign in to comment.