summaryrefslogtreecommitdiff
path: root/ext/js/language/japanese-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language/japanese-util.js')
-rw-r--r--ext/js/language/japanese-util.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/js/language/japanese-util.js b/ext/js/language/japanese-util.js
index 8780c24c..7ee726b2 100644
--- a/ext/js/language/japanese-util.js
+++ b/ext/js/language/japanese-util.js
@@ -322,14 +322,13 @@ const JapaneseUtil = (() => {
case 'katakana':
return this.convertHiraganaToKatakana(reading);
case 'romaji':
- if (reading) {
+ if (reading.length > 0) {
return this.convertToRomaji(reading);
+ } else if (this.isStringEntirelyKana(term)) {
+ return this.convertToRomaji(term);
} else {
- if (this.isStringEntirelyKana(term)) {
- return this.convertToRomaji(term);
- }
+ return reading;
}
- return reading;
case 'none':
return '';
default: