From d99e3d49e1ccfd44bb66c47ff36ee94d6d7253b6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 27 Dec 2024 00:05:32 -0800 Subject: [PATCH] refac --- .../components/chat/Messages/ResponseMessage.svelte | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 359f2636d..e553c3ca0 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -543,8 +543,12 @@ {$i18n.t(status?.description, { count: status?.urls.length })} + {:else if status?.description === 'No search query generated'} + {$i18n.t('No search query generated')} + {:else if status?.description === 'Generating search query'} + {$i18n.t('Generating search query')} {:else} - {$i18n.t(status?.description)} + {status?.description} {/if} @@ -573,8 +577,12 @@ {$i18n.t(status?.description, { searchQuery: status?.query })} + {:else if status?.description === 'No search query generated'} + {$i18n.t('No search query generated')} + {:else if status?.description === 'Generating search query'} + {$i18n.t('Generating search query')} {:else} - {$i18n.t(status?.description)} + {status?.description} {/if}