WIP
This commit is contained in:
parent
8ad217970f
commit
72ed8be877
@ -43,7 +43,7 @@ class Translator {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
findTerm(text, enableSoftKatakanaSearch, dictionaries) {
|
findTerm(text, dictionaries, enableSoftKatakanaSearch) {
|
||||||
return this.findTermGroups(text, dictionaries).then(groups => {
|
return this.findTermGroups(text, dictionaries).then(groups => {
|
||||||
const textHiragana = wanakana._katakanaToHiragana(text);
|
const textHiragana = wanakana._katakanaToHiragana(text);
|
||||||
if (text !== textHiragana && enableSoftKatakanaSearch) {
|
if (text !== textHiragana && enableSoftKatakanaSearch) {
|
||||||
|
@ -246,7 +246,7 @@ class Yomichan {
|
|||||||
}
|
}
|
||||||
|
|
||||||
promiseCallback(
|
promiseCallback(
|
||||||
this.translator.findTerm(text, this.options.enableSoftKatakanaSearch, dictionaries),
|
this.translator.findTerm(text, dictionaries, this.options.enableSoftKatakanaSearch),
|
||||||
callback
|
callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user