diff --git a/ext/js/language/ja/language-japanese.js b/ext/js/language/ja/language-japanese.js index 28d1fba867..ced34bcd66 100644 --- a/ext/js/language/ja/language-japanese.js +++ b/ext/js/language/ja/language-japanese.js @@ -30,35 +30,35 @@ export const descriptor = { description: 'ヨミチャン → ヨミチャン', options: basicTextPreprocessorOptions, /** @type {import('language').TextPreprocessorFunction} */ - process: (str, setting, sourceMap) => setting ? convertHalfWidthKanaToFullWidth(str, sourceMap) : str + process: (str, setting, sourceMap) => (setting ? convertHalfWidthKanaToFullWidth(str, sourceMap) : str) }, convertNumericCharacters: { name: 'Convert numeric characters to full width', description: '1234 → 1234', options: basicTextPreprocessorOptions, /** @type {import('language').TextPreprocessorFunction} */ - process: (str, setting) => setting ? convertNumericToFullWidth(str) : str + process: (str, setting) => (setting ? convertNumericToFullWidth(str) : str) }, convertAlphabeticCharacters: { name: 'Convert alphabetic characters to hiragana', description: 'yomichan → よみちゃん', options: basicTextPreprocessorOptions, /** @type {import('language').TextPreprocessorFunction} */ - process: (str, setting, sourceMap) => setting ? convertAlphabeticToKana(str, sourceMap) : str + process: (str, setting, sourceMap) => (setting ? convertAlphabeticToKana(str, sourceMap) : str) }, convertHiraganaToKatakana: { name: 'Convert hiragana to katakana', description: 'よみちゃん → ヨミチャン', options: basicTextPreprocessorOptions, /** @type {import('language').TextPreprocessorFunction} */ - process: (str, setting) => setting ? convertHiraganaToKatakana(str) : str + process: (str, setting) => (setting ? convertHiraganaToKatakana(str) : str) }, convertKatakanaToHiragana: { name: 'Convert katakana to hiragana', description: 'ヨミチャン → よみちゃん', options: basicTextPreprocessorOptions, /** @type {import('language').TextPreprocessorFunction} */ - process: (str, setting) => setting ? convertKatakanaToHiragana(str) : str + process: (str, setting) => (setting ? convertKatakanaToHiragana(str) : str) }, collapseEmphaticSequences: { name: 'Collapse emphatic character sequences',