@@ -498,7 +498,7 @@ export default function SessionDetailPage() {
498498 onClick = { handleInsertSlashCommand }
499499 disabled = { slashSending || ! h . alive }
500500 className = { buttonClass }
501- title = "Insert selected slash command into the message input"
501+ title = { t ( 'sessionDetail.sessionInsertSlashCommandInput' ) }
502502 >
503503 { t ( 'sessionDetail.insertSlash' ) }
504504 </ button >
@@ -508,7 +508,7 @@ export default function SessionDetailPage() {
508508 onClick = { handleSendSlashCommand }
509509 disabled = { slashSending || ! h . alive }
510510 className = { accentButtonClass }
511- title = "Send selected slash command immediately"
511+ title = { t ( 'sessionDetail.sessionSendSlashCommand' ) }
512512 >
513513 { slashSending ? t ( 'sessionDetail.sendingSlash' ) : t ( 'sessionDetail.runSlash' ) }
514514 </ button >
@@ -519,7 +519,7 @@ export default function SessionDetailPage() {
519519 onClick = { handleCaptureScreenshot }
520520 disabled = { capturingScreenshot || ! h . alive }
521521 className = { buttonClass }
522- title = "Capture screenshot"
522+ title = { t ( 'sessionDetail.sessionCaptureScreenshot' ) }
523523 >
524524 { capturingScreenshot ? t ( 'sessionDetail.capturing' ) : t ( 'sessionDetail.screenshot' ) }
525525 </ button >
@@ -532,7 +532,7 @@ export default function SessionDetailPage() {
532532 onClick = { handleInterrupt }
533533 aria-label = { t ( 'sessionDetail.interrupt' ) }
534534 className = { buttonClass }
535- title = "Interrupt (Ctrl+C)"
535+ title = { t ( 'sessionDetail.sessionInterruptCtrlC' ) }
536536 >
537537 { t ( 'sessionDetail.interrupt' ) }
538538 </ button >
@@ -541,7 +541,7 @@ export default function SessionDetailPage() {
541541 onClick = { handleEscape }
542542 aria-label = { t ( 'sessionDetail.escape' ) }
543543 className = { buttonClass }
544- title = "Send Escape"
544+ title = { t ( 'sessionDetail.sessionSendEscape' ) }
545545 >
546546 { t ( 'sessionDetail.escape' ) }
547547 </ button >
@@ -820,43 +820,43 @@ export default function SessionDetailPage() {
820820 < div className = "flex items-center gap-1" >
821821 < button
822822 type = "button"
823- title = "Insert slash command"
823+ title = { t ( 'sessionDetail.sessionInsertSlashCommand' ) }
824824 onClick = { ( ) => { setMsgInput ( ( v ) => v || '/' ) ; getVisibleMessageInput ( ) ?. focus ( ) ; } }
825825 disabled = { ! h . alive }
826826 className = "inline-flex h-8 w-8 items-center justify-center rounded text-[var(--color-text-muted)] transition-colors hover:bg-[var(--color-void-lighter)] hover:text-[var(--color-text-primary)] disabled:opacity-30"
827- aria-label = "Slash command"
827+ aria-label = { t ( 'sessionDetail.sessionSlashCommand' ) }
828828 >
829829 < span className = "text-sm font-mono font-bold" > /</ span >
830830 </ button >
831831 { ! screenshotUnsupported && (
832832 < button
833833 type = "button"
834- title = "Capture screenshot"
834+ title = { t ( 'sessionDetail.sessionCaptureScreenshot' ) }
835835 onClick = { handleCaptureScreenshot }
836836 disabled = { capturingScreenshot || ! h . alive }
837837 className = "inline-flex h-8 w-8 items-center justify-center rounded text-[var(--color-text-muted)] transition-colors hover:bg-[var(--color-void-lighter)] hover:text-[var(--color-text-primary)] disabled:opacity-30"
838- aria-label = "Capture screenshot"
838+ aria-label = { t ( 'sessionDetail.sessionCaptureScreenshot' ) }
839839 >
840840 < span className = "text-xs" > ⬛</ span >
841841 </ button >
842842 ) }
843843 < button
844844 type = "button"
845- title = "Send Escape"
845+ title = { t ( 'sessionDetail.sessionSendEscape' ) }
846846 onClick = { handleEscape }
847847 disabled = { ! h . alive }
848848 className = "inline-flex h-8 items-center justify-center rounded px-1.5 text-[10px] font-mono text-[var(--color-text-muted)] transition-colors hover:bg-[var(--color-void-lighter)] hover:text-[var(--color-text-primary)] disabled:opacity-30"
849- aria-label = "Send Escape to session"
849+ aria-label = { t ( 'sessionDetail.sessionSendEscape' ) }
850850 >
851851 Esc
852852 </ button >
853853 < button
854854 type = "button"
855- title = "Interrupt (Ctrl+C)"
855+ title = { t ( 'sessionDetail.sessionInterruptCtrlC' ) }
856856 onClick = { handleInterrupt }
857857 disabled = { ! h . alive }
858858 className = "inline-flex h-8 items-center justify-center rounded px-1.5 text-[10px] font-mono text-[var(--color-text-muted)] transition-colors hover:bg-[var(--color-void-lighter)] hover:text-[var(--color-text-primary)] disabled:opacity-30"
859- aria-label = "Interrupt session with Ctrl+C"
859+ aria-label = { t ( 'sessionDetail.sessionInterruptCtrlC' ) }
860860 >
861861 ^C
862862 </ button >
@@ -882,7 +882,7 @@ export default function SessionDetailPage() {
882882 onClick = { handleSend }
883883 disabled = { sending || ! msgInput . trim ( ) || ! h . alive }
884884 className = "flex min-h-[44px] min-w-[44px] items-center justify-center rounded border border-[var(--color-cta-bg)]/50 bg-[var(--color-cta-bg)]/15 p-2.5 text-[var(--color-cta-bg)] transition-all hover:bg-[var(--color-cta-bg)]/30 disabled:cursor-not-allowed disabled:opacity-30"
885- aria-label = "Send message (⌘↵)"
885+ aria-label = { t ( 'sessionDetail.sessionSendMessageCmd' ) }
886886 >
887887 < Send className = "h-4 w-4" />
888888 </ button >
@@ -1014,7 +1014,7 @@ export default function SessionDetailPage() {
10141014 onClick = { handleSend }
10151015 disabled = { sending || ! msgInput . trim ( ) || ! h . alive }
10161016 className = "flex min-h-[48px] min-w-[48px] items-center justify-center rounded-xl border border-[var(--color-accent-cyan)]/30 bg-[var(--color-accent-cyan)]/10 p-3 text-[var(--color-accent-cyan)] transition-colors hover:bg-[var(--color-accent-cyan)]/20 disabled:cursor-not-allowed disabled:opacity-30"
1017- aria-label = "Send message"
1017+ aria-label = { t ( 'sessionDetail.sessionSendMessage' ) }
10181018 >
10191019 < Send className = "h-4 w-4" />
10201020 </ button >
0 commit comments