aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-12-27 18:56:28 -0800
committerAlex Yatskov <alex@foosoft.net>2016-12-27 18:56:28 -0800
commitc7e9179b6839011131c442c7a835120fd433c119 (patch)
tree811ab2b6fa5571944c238245ba1a5055751ede67 /ext
parentea009fb11486043f7081021212ddd2283d325009 (diff)
fixing bug that was preventing katakana terms from being searchable
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/translator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 6ce57514..2b6b87c1 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -43,12 +43,12 @@ class Translator {
findTerm(text, dictionaries, enableSoftKatakanaSearch) {
const cache = {};
- return this.findTermDeinflections(text, dictionaries, cache).then(deinfHiragana => {
+ return this.findTermDeinflections(text, dictionaries, cache).then(deinfLiteral => {
const textHiragana = wanakana._katakanaToHiragana(text);
if (text !== textHiragana && enableSoftKatakanaSearch) {
- return this.findTermDeinflections(textHiragana, dictionaries, cache).then(deinfHiragana => deinfHiragana.concat(deinfHiragana));
+ return this.findTermDeinflections(textHiragana, dictionaries, cache).then(deinfHiragana => deinfLiteral.concat(deinfHiragana));
} else {
- return deinfHiragana;
+ return deinfLiteral;
}
}).then(deinflections => {
let definitions = [];