enh: chat "clone" i18n

This commit is contained in:
Timothy Jaeryang Baek
2025-01-28 12:49:06 -08:00
parent 8c7e52e5a1
commit c021aba094
3 changed files with 20 additions and 5 deletions

View File

@@ -87,7 +87,13 @@
};
const cloneChatHandler = async (id) => {
const res = await cloneChatById(localStorage.token, id).catch((error) => {
const res = await cloneChatById(
localStorage.token,
id,
$i18n.t('Clone of {{TITLE}}', {
TITLE: title
})
).catch((error) => {
toast.error(`${error}`);
return null;
});