The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(assistant-ui): add i18n support for message input aria-label
Steven Enamakeld9cd4032fee8
diff --git a/app/src/components/assistant-ui/elements/artifact-card.tsx b/app/src/components/assistant-ui/elements/artifact-card.tsxindex ed404c3383..5114bf97db 100644--- a/app/src/components/assistant-ui/elements/artifact-card.tsx+++ b/app/src/components/assistant-ui/elements/artifact-card.tsx@@ -19,6 +19,7 @@*/import { mono, paper, ShimmerLabel } from '@/components/assistant-ui/elements/surfaces';import { cn } from '@/components/assistant-ui/lib/utils';+import { useT } from '@/lib/i18n/I18nContext';import { ArrowUpRightIcon, FileTextIcon } from 'lucide-react';import type { ComponentProps, ElementType } from 'react';diff --git a/app/src/components/assistant-ui/thread.tsx b/app/src/components/assistant-ui/thread.tsxindex 72a904486b..ee0fd75c53 100644--- a/app/src/components/assistant-ui/thread.tsx+++ b/app/src/components/assistant-ui/thread.tsx@@ -925,6 +925,8 @@ const Composer: FC<{/** A file drag is over the thread and will land here; see `useThreadFileDrop`. */isDraggingFiles: boolean;}> = ({ model, onModelChange, onEscape, isDraggingFiles }) => {+ const { t } = useT();+ const messageInputLabel = t('assistantUi.thread.messageInputLabel', 'Message input');const aui = useAui();const commands = useContext(SlashCommandsContext);const slash = unstable_useSlashCommandAdapter({ commands, fallbackIcon: SlashIcon });@@ -938,7 +940,7 @@ const Composer: FC<{} = useContext(ThreadComponentsContext);useEffect(() => {const textbox = inputWrapperRef.current?.querySelector<HTMLElement>('[contenteditable="true"]');- textbox?.setAttribute('aria-label', 'Message input');+ textbox?.setAttribute('aria-label', messageInputLabel);// The rich Lexical surface deliberately is not a native textarea, so give// it an explicit stable hook for browser tests and assistive tooling. The// old chat composer exposed a textarea with a placeholder; consumers must