From 619070ee8de14e112a3af8e139822318fa89763c Mon Sep 17 00:00:00 2001 From: Jason Ojisan Date: Tue, 10 Dec 2024 10:46:14 -0800 Subject: [PATCH] Change messaging to dictionary size * Change messaging to dictionary size * Change label based on kanji MmY2MDllYjA5MjFhNTc4YmFiMWJlOWMxMDE4ODU1MzQ1Y2I2MDM4ZQo= --- 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 4db7bf4e0..a5dcb653f 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; }