From 95021463ac96ae0bb36726749a76b0de42ffcc65 Mon Sep 17 00:00:00 2001 From: Petri Savolainen Date: Mon, 30 Dec 2024 18:06:48 +0200 Subject: [PATCH] localize thread deletion title -> fix Chainlit/chainlit#1551 --- backend/chainlit/translations/en-US.json | 1 + .../organisms/sidebar/threadHistory/DeleteThreadButton.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/chainlit/translations/en-US.json b/backend/chainlit/translations/en-US.json index f8a7fd096e..0547db34d8 100644 --- a/backend/chainlit/translations/en-US.json +++ b/backend/chainlit/translations/en-US.json @@ -176,6 +176,7 @@ } }, "DeleteThreadButton": { + "title": "Delete Thread?", "confirmMessage": "This will delete the thread as well as it's messages and elements.", "cancel": "Cancel", "confirm": "Confirm", diff --git a/frontend/src/components/organisms/sidebar/threadHistory/DeleteThreadButton.tsx b/frontend/src/components/organisms/sidebar/threadHistory/DeleteThreadButton.tsx index 52641116a6..2e3fa218f7 100644 --- a/frontend/src/components/organisms/sidebar/threadHistory/DeleteThreadButton.tsx +++ b/frontend/src/components/organisms/sidebar/threadHistory/DeleteThreadButton.tsx @@ -77,7 +77,9 @@ const DeleteThreadButton = ({ threadId, onDelete }: Props) => { } }} > - {'Delete Thread?'} + + +