diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-03-20 22:32:46 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-03-20 22:32:46 -0700 |
commit | f6342da49da58b966275c7fde699ce38f5d68b0b (patch) | |
tree | 71ce87e7abe9171795036395d089c5e7995e272c | |
parent | f784462c4dd63d7241cdb31b56761db3b5c7bf25 (diff) |
WIP
-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; } } |