Files
orca/config/scripts/locale-screen-cursor-exemptions.mjs
mirror 34fa2cd5ca
Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
source snapshot 2026-09-02
2026-09-02 02:03:16 +08:00

26 lines
881 B
JavaScript

// Distinguishes the on-screen cursor (カーソル) from the "Cursor" product so the brand
// revert in the translation policy doesn't force terminal/theme cursor settings back to Latin.
// Multi-word "Cursor …" labels always mean the screen cursor, never the Cursor product.
const SCREEN_CURSOR_ENVALUES = new Set([
'Cursor Text',
'Cursor color',
'Cursor Opacity',
'Cursor Shape',
'Blinking Cursor',
'Terminal Cursor'
])
// Bare "Cursor" is ambiguous; these keys are the terminal/theme cursor settings (screen cursor).
const SCREEN_CURSOR_KEYS = new Set([
'auto.components.settings.TerminalWindowSection.c9e1fdf42f',
'auto.components.onboarding.ThemeStep.ab2a583a97'
])
export function isScreenCursorContext(brand, enValue, key) {
if (brand !== 'Cursor') {
return false
}
return SCREEN_CURSOR_ENVALUES.has(enValue) || SCREEN_CURSOR_KEYS.has(key)
}