From 2f609eb0921a578bab1be9c1018855345cb6038e Mon Sep 17 00:00:00 2001 From: James Maa Date: Tue, 10 Dec 2024 10:46:14 -0800 Subject: [PATCH] Change messaging to dictionary size (#1652) * Change messaging to dictionary size * Change label based on kanji --- ext/js/display/display-generator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/js/display/display-generator.js b/ext/js/display/display-generator.js index e19dbb61b..3b6703061 100644 --- a/ext/js/display/display-generator.js +++ b/ext/js/display/display-generator.js @@ -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; } @@ -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; } @@ -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; }