mirror of
https://github.com/stablyai/orca.git
synced 2026-09-23 00:02:29 +00:00
* Fix unnatural Japanese localization wording
- "Open in" submenu: bare で開く → アプリで開く
- "Assigned to me" filter: 私に割り当てられました → 私に割り当てられた Issue
- Use Latin "Issue" instead of katakana イシュー throughout (JP engineering convention)
- Terminal/theme cursor settings: render the screen cursor as カーソル, not the
Cursor product. The brand-protection revert (Cursor→カーソル→Cursor) now exempts
these keys/values so カーソル survives while the Cursor product stays Latin.
- GraphQL: グラフQL → GraphQL
- Assignee picker aria-label: {{value0}} に割り当てられました → {{value0}} に割り当て済み
Fixes are made in the locale repair policy (overrides / phrase fixes) and applied via
repair:ja-catalog so they persist across future catalog regeneration.
* Extract screen-cursor exemption into a focused module
Move the Cursor screen-vs-product discrimination (SCREEN_CURSOR_ENVALUES /
SCREEN_CURSOR_KEYS / isScreenCursorContext) out of locale-translation-policy.mjs
into locale-screen-cursor-exemptions.mjs to keep the policy file under the
max-lines limit. No behavior change.
* Fix PR/issue state badge wording in Japanese
"State: Closed" was 状態: 閉店 (a shop closing) — change to 状態: クローズ to match
how the Closed state is rendered elsewhere. Also align "State: Merged" (状態: 結合済み)
with the standard マージ済み used for git merges.
---------
Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
26 lines
881 B
JavaScript
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)
|
|
}
|