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:
Marcel
2026-06-04 17:11:29 +02:00
committed by marcel
parent 8a9fbc6aef
commit 9f75de0350
5 changed files with 11 additions and 3 deletions

View File

@@ -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);