Skip to content

Commit

Permalink
Change messaging to dictionary size (#1652)
Browse files Browse the repository at this point in the history
* Change messaging to dictionary size

* Change label based on kanji
  • Loading branch information
jamesmaa authored Dec 10, 2024
1 parent a5609e9 commit 2f609eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/js/display/display-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ export class DisplayGenerator {
body.dataset.count = `${ii}`;
node.dataset.count = `${ii}`;
node.dataset.details = dictionary;
tag.dataset.details = dictionary + '\nFrequency Count: ' + freqCount?.toString();
tag.dataset.details = dictionary + '\nDictionary size: ' + freqCount?.toString() + (kanji ? ' kanji' : ' terms');
return node;
}

Expand Down Expand Up @@ -906,7 +906,7 @@ export class DisplayGenerator {
node.dataset.readingIsSame = `${reading === term}`;
node.dataset.dictionary = dictionary;
node.dataset.details = dictionary;
tag.dataset.details = dictionary + '\nFrequency Count: ' + freqCount;
tag.dataset.details = dictionary + '\nDictionary size: ' + freqCount + ' terms';
return node;
}

Expand All @@ -930,7 +930,7 @@ export class DisplayGenerator {
node.dataset.character = character;
node.dataset.dictionary = dictionary;
node.dataset.details = dictionary;
tag.dataset.details = dictionary + '\nFrequency Count: ' + freqCount;
tag.dataset.details = dictionary + '\nDictionary size: ' + freqCount + ' kanji';

return node;
}
Expand Down

0 comments on commit 2f609eb

Please sign in to comment.