Fixing certain definitions not showing up
This commit is contained in:
parent
7dcad6bd71
commit
85015b1776
@ -151,9 +151,10 @@ class Translator {
|
||||
return definitions;
|
||||
}
|
||||
|
||||
processTerm(groups, source, tags, rules=[], root='') {
|
||||
processTerm(groups, source, tags, rules=[], root) {
|
||||
for (const entry of this.dictionary.findTerm(root)) {
|
||||
if (entry.id in groups) {
|
||||
const groupId = `${source}_${entry.id}`;
|
||||
if (groupId in groups) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -208,7 +209,7 @@ class Translator {
|
||||
});
|
||||
|
||||
if (matched) {
|
||||
groups[entry.id] = {
|
||||
groups[groupId] = {
|
||||
expression: entry.expression,
|
||||
reading: entry.reading,
|
||||
glossary: entry.glossary,
|
||||
|
Loading…
Reference in New Issue
Block a user