Skip to content

Commit

Permalink
localize thread deletion title -> fix #1551
Browse files Browse the repository at this point in the history
  • Loading branch information
petri committed Dec 30, 2024
1 parent dba5b4d commit 9502146
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/chainlit/translations/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ const DeleteThreadButton = ({ threadId, onDelete }: Props) => {
}
}}
>
<DialogTitle id="alert-dialog-title">{'Delete Thread?'}</DialogTitle>
<DialogTitle id="alert-dialog-title">
<Translator path="components.organisms.threadHistory.sidebar.DeleteThreadButton.title" />
</DialogTitle>
<DialogContent>
<DialogContentText id="alert-dialog-description">
<Translator path="components.organisms.threadHistory.sidebar.DeleteThreadButton.confirmMessage" />
Expand Down

0 comments on commit 9502146

Please sign in to comment.