diff options
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/translator.js | 6 |
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 = []; |