aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dictionary
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dictionary')
-rw-r--r--ext/js/dictionary/dictionary-importer.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/js/dictionary/dictionary-importer.js b/ext/js/dictionary/dictionary-importer.js
index 310b2ec1..f0c92481 100644
--- a/ext/js/dictionary/dictionary-importer.js
+++ b/ext/js/dictionary/dictionary-importer.js
@@ -285,12 +285,14 @@ export class DictionaryImporter {
counts
};
- const {author, url, description, attribution, frequencyMode} = index;
+ const {author, url, description, attribution, frequencyMode, sourceLanguage, targetLanguage} = index;
if (typeof author === 'string') { summary.author = author; }
if (typeof url === 'string') { summary.url = url; }
if (typeof description === 'string') { summary.description = description; }
if (typeof attribution === 'string') { summary.attribution = attribution; }
if (typeof frequencyMode === 'string') { summary.frequencyMode = frequencyMode; }
+ if (typeof sourceLanguage === 'string') { summary.sourceLanguage = sourceLanguage; }
+ if (typeof targetLanguage === 'string') { summary.targetLanguage = targetLanguage; }
return summary;
}