diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-14 16:38:12 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-03-15 22:24:30 -0400 |
commit | 248a18dd72c687a470246c26d5c74e440058bf55 (patch) | |
tree | 56a4c454f2de1ed473586fc3f8feecf2351884c9 /ext/bg/js | |
parent | 264820f2087e7dee13e358ba703d3dd863ed7faa (diff) |
Fix case issue
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/japanese.js | 4 | ||||
-rw-r--r-- | ext/bg/js/translator.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/japanese.js b/ext/bg/js/japanese.js index 4c2df674..fa40fc98 100644 --- a/ext/bg/js/japanese.js +++ b/ext/bg/js/japanese.js @@ -231,7 +231,7 @@ const jp = (() => { } } - function convertNumericTofullWidth(text) { + function convertNumericToFullWidth(text) { let result = ''; for (const char of text) { let c = char.codePointAt(0); @@ -485,7 +485,7 @@ const jp = (() => { convertHiraganaToKatakana, convertToRomaji, convertReading, - convertNumericTofullWidth, + convertNumericToFullWidth, convertHalfWidthKanaToFullWidth, convertAlphabeticToKana, distributeFurigana, diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index 54d046cf..6f43f7b0 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -373,7 +373,7 @@ class Translator { text2 = jp.convertHalfWidthKanaToFullWidth(text2, sourceMapping); } if (numeric) { - text2 = jp.convertNumericTofullWidth(text2); + text2 = jp.convertNumericToFullWidth(text2); } if (alphabetic) { if (sourceMapping === null) { sourceMapping = Translator.createTextSourceMapping(text2); } |