feat(conversation): add empty state title for memory conversation

- Add chatEmpty translation key to English i18n file with message "Is there anything I can help you with?"
- Add chatEmpty translation key to Chinese i18n file with message "有什么我可以帮您的吗?"
- Update Chat component empty state to display title using chatEmpty translation instead of only showing subTitle
- Improve empty state UX by providing a welcoming greeting message to users
This commit is contained in:
yujiangping
2026-01-15 19:00:28 +08:00
parent fd3016122d
commit 99d7061a4f
3 changed files with 3 additions and 1 deletions

View File

@@ -262,7 +262,7 @@ const Conversation: FC = () => {
<div className="rb:relative rb:h-screen rb:px-4 rb:flex-[1_1_auto]">
<div className='rb:w-[760px] rb:h-screen rb:mx-auto rb:pt-10'>
<Chat
empty={<Empty url={ChatEmpty} className="rb:h-full" size={[320,180]} subTitle={t('memoryConversation.emptyDesc')} />}
empty={<Empty url={ChatEmpty} className="rb:h-full" size={[320,180]} title={t('memoryConversation.chatEmpty')} subTitle={t('memoryConversation.emptyDesc')} />}
contentClassName="rb:h-[calc(100%-152px)] "
data={chatList}
streamLoading={streamLoading}