fix(transcribe): localise Delete key cap + annotation label, clarify Esc row (#327)
Review follow-up (Leonie, Requirements Engineer): the Delete key cap was a hardcoded German "Entf" shown to EN/ES users — now driven by key_cap_delete (Entf/Del/Supr). The annotation read-only aria-label was a hardcoded German "Block anzeigen" in all locales — now annotation_view_label. Renamed the Esc row label from "Bereich schließen" to "Panel schließen" so it no longer collides with "Bereich" (= region) used elsewhere in the cheatsheet. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,9 @@ let {
|
||||
// When deletion is available (transcribe mode), announce the otherwise-hidden
|
||||
// Delete affordance to assistive tech (issue #327). The transcribeShortcuts
|
||||
// action is the single owner of the key itself.
|
||||
const ariaLabel = $derived(showDelete ? m.annotation_label_with_delete() : 'Block anzeigen');
|
||||
const ariaLabel = $derived(
|
||||
showDelete ? m.annotation_label_with_delete() : m.annotation_view_label()
|
||||
);
|
||||
|
||||
function hexToRgba(hex: string, alpha: number): string {
|
||||
const r = parseInt(hex.slice(1, 3), 16);
|
||||
|
||||
Reference in New Issue
Block a user