summaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-09-12 20:20:03 -0700
committerAlex Yatskov <alex@foosoft.net>2017-09-12 20:20:03 -0700
commit79b99131f69ab778e4c8203caa0894e8accde436 (patch)
tree9e2f1870e16b6a6f67add91347bc113b50fe3b97 /ext/bg/js/translator.js
parent3b29893072b89b75c7fd82b9138b09572ec6248c (diff)
add frequency table support for kanji
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 3b9a1128..1e79b6fc 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -127,6 +127,7 @@ class Translator {
const tags = definition.tags.map(tag => dictTagBuild(tag, definition.tagMeta));
tags.push(dictTagBuildSource(definition.dictionary));
definition.tags = dictTagsSort(tags);
+ definition.frequencies = await this.database.findKanjiFreq(definition.character, titles);
}
return definitions;