diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js index 8c55f41c90..1ac42a0dfd 100644 --- a/ext/js/language/translator.js +++ b/ext/js/language/translator.js @@ -19,7 +19,7 @@ import {applyTextReplacement} from '../general/regex-util.js'; import {isCodePointJapanese} from './ja/japanese.js'; import {LanguageTransformer} from './language-transformer.js'; -import {getAllLanguageTextProcessors, getAllLanguageReadingNormalizers} from './languages.js'; +import {getAllLanguageReadingNormalizers, getAllLanguageTextProcessors} from './languages.js'; import {MultiLanguageTransformer} from './multi-language-transformer.js'; /** @@ -219,7 +219,7 @@ export class Translator { */ async _findTermsInternal(text, options, tagAggregator) { const {removeNonJapaneseCharacters, enabledDictionaryMap} = options; - if (removeNonJapaneseCharacters) { + if (removeNonJapaneseCharacters && options.language === 'ja') { text = this._getJapaneseOnlyText(text); } if (text.length === 0) { diff --git a/ext/settings.html b/ext/settings.html index cb3a9382cd..e0a9c0c0c4 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -2432,7 +2432,7 @@