// Japanese phrase fixes from high-visibility UI audit rounds 1–4. // Why: keep locale-phrase-fixes.mjs under max-lines while preserving repair coverage. const JA_SENTENCE_CHAR = '[぀-ヿ一-龯、。・「」()]' // Two-word commands (`git commit`, `orca terminal`) must keep their second word in Latin. const COMMAND_HEAD = '(? [ { // The trailing space only goes when Japanese follows, so 和欧間スペース survives before {{…}}. pattern: new RegExp( `(?<=${JA_SENTENCE_CHAR}) ?${COMMAND_HEAD}${latin}(?![-\\w.])(?! [A-Za-z])(?: (?=${JA_SENTENCE_CHAR}))?`, 'g' ), replacement: katakana, whenEnIncludes }, { pattern: new RegExp( `(?