aboutsummaryrefslogtreecommitdiff
path: root/ext/jp/translator.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-03-20 22:32:46 -0700
committerAlex Yatskov <alex@foosoft.net>2016-03-20 22:32:46 -0700
commitf6342da49da58b966275c7fde699ce38f5d68b0b (patch)
tree71ce87e7abe9171795036395d089c5e7995e272c /ext/jp/translator.js
parentf784462c4dd63d7241cdb31b56761db3b5c7bf25 (diff)
WIP
Diffstat (limited to 'ext/jp/translator.js')
-rw-r--r--ext/jp/translator.js8
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;
}
}