diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/jp/translator.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/jp/translator.js b/ext/jp/translator.js index e86ea238..a071a768 100644 --- a/ext/jp/translator.js +++ b/ext/jp/translator.js @@ -94,7 +94,6 @@ class Translator { // for (const entry of this.dictionary.findTerm(root)) { // const key = - // } // root = root or source @@ -156,7 +155,12 @@ class Translator { } validator(term) { - // return [d['tags'] for d in self.dictionary.findTerm(term)] + const tags = []; + for (const d of self.dictionary.findTerm(term)) { + tags.push(d.tags); + } + + return tags; } } |