aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-11 09:18:55 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-11 09:18:55 +0300
commit4fb983a70cd02c0c0126a26e70d40261d5b2a51d (patch)
tree5811191bc6974b8c2813abd5d944e0b1661df4f4 /ext/bg/js/translator.js
parente1c5d7a401f1f974da1bedd8600524d982c2c7de (diff)
add termTags
The dictionary tags field can now have a '\t' in it, and it is used to separate tags associated with definitions and terms.
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 678bc613..737abd08 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -154,6 +154,7 @@ class Translator {
for (const definition of deinflection.definitions) {
const tags = await this.expandTags(definition.tags, definition.dictionary);
tags.push(dictTagBuildSource(definition.dictionary));
+ const termTags = await this.expandTags(definition.termTags, definition.dictionary);
definitions.push({
source: deinflection.source,
@@ -165,6 +166,7 @@ class Translator {
reading: definition.reading,
glossary: definition.glossary,
tags: dictTagsSort(tags),
+ termTags: dictTagsSort(termTags),
sequence: definition.sequence
});
}