🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(InputEditor): ensure lexical placeholder reactively updates on locale change (#11352)
Innei72e796bae533
diff --git a/src/features/ChatInput/InputEditor/Placeholder.tsx b/src/features/ChatInput/InputEditor/Placeholder.tsxindex 561580fc56a..dfef23e114f 100644--- a/src/features/ChatInput/InputEditor/Placeholder.tsx+++ b/src/features/ChatInput/InputEditor/Placeholder.tsx@@ -1,7 +1,7 @@import { KeyEnum } from '@lobechat/types';import { Flexbox, Hotkey, combineKeys } from '@lobehub/ui';import { memo } from 'react';-import { Trans } from 'react-i18next';+import { Trans, useTranslation } from 'react-i18next';import { useUserStore } from '@/store/user';import { preferenceSelectors } from '@/store/user/selectors';@@ -12,6 +12,9 @@ const Placeholder = memo(() => {? KeyEnum.Enter: combineKeys([KeyEnum.Mod, KeyEnum.Enter]);+ // Don't remove this line for i18n reactivity+ void useTranslation('chat');+return (<Flexbox align={'center'} as={'span'} gap={4} horizontal wrap={'wrap'}><Trans