Skip to content

Commit 26c3edd

Browse files
authored
Merge pull request #5430 from skymkmk/pr-manual-regen-title
feat: menual regen title
2 parents b32d82e + fa48ace commit 26c3edd

File tree

21 files changed

+69
-9
lines changed

21 files changed

+69
-9
lines changed

app/components/chat.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import QualityIcon from "../icons/hd.svg";
4343
import StyleIcon from "../icons/palette.svg";
4444
import PluginIcon from "../icons/plugin.svg";
4545
import ShortcutkeyIcon from "../icons/shortcutkey.svg";
46+
import ReloadIcon from "../icons/reload.svg";
4647

4748
import {
4849
ChatMessage,
@@ -1541,6 +1542,17 @@ function _Chat() {
15411542
</div>
15421543
</div>
15431544
<div className="window-actions">
1545+
<div className="window-action-button">
1546+
<IconButton
1547+
icon={<ReloadIcon />}
1548+
bordered
1549+
title={Locale.Chat.Actions.RefreshTitle}
1550+
onClick={() => {
1551+
showToast(Locale.Chat.Actions.RefreshToast);
1552+
chatStore.summarizeSession(true);
1553+
}}
1554+
/>
1555+
</div>
15441556
{!isMobileScreen && (
15451557
<div className="window-action-button">
15461558
<IconButton

app/locales/ar.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const ar: PartialLocaleType = {
4343
PinToastAction: "عرض",
4444
Delete: "حذف",
4545
Edit: "تحرير",
46+
RefreshTitle: "تحديث العنوان",
47+
RefreshToast: "تم إرسال طلب تحديث العنوان",
4648
},
4749
Commands: {
4850
new: "دردشة جديدة",

app/locales/bn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const bn: PartialLocaleType = {
4343
PinToastAction: "দেখুন",
4444
Delete: "মুছে ফেলুন",
4545
Edit: "সম্পাদনা করুন",
46+
RefreshTitle: "শিরোনাম রিফ্রেশ করুন",
47+
RefreshToast: "শিরোনাম রিফ্রেশ অনুরোধ পাঠানো হয়েছে",
4648
},
4749
Commands: {
4850
new: "নতুন চ্যাট",

app/locales/cn.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const cn = {
4444
Delete: "删除",
4545
Edit: "编辑",
4646
FullScreen: "全屏",
47+
RefreshTitle: "刷新标题",
48+
RefreshToast: "已发送刷新标题请求",
4749
},
4850
Commands: {
4951
new: "新建聊天",

app/locales/cs.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const cs: PartialLocaleType = {
4343
PinToastAction: "Zobrazit",
4444
Delete: "Smazat",
4545
Edit: "Upravit",
46+
RefreshTitle: "Obnovit název",
47+
RefreshToast: "Požadavek na obnovení názvu byl odeslán",
4648
},
4749
Commands: {
4850
new: "Nová konverzace",

app/locales/de.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const de: PartialLocaleType = {
4343
PinToastAction: "Ansehen",
4444
Delete: "Löschen",
4545
Edit: "Bearbeiten",
46+
RefreshTitle: "Titel aktualisieren",
47+
RefreshToast: "Anfrage zur Titelaktualisierung gesendet",
4648
},
4749
Commands: {
4850
new: "Neues Gespräch",

app/locales/en.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ const en: LocaleType = {
4545
Delete: "Delete",
4646
Edit: "Edit",
4747
FullScreen: "FullScreen",
48+
RefreshTitle: "Refresh Title",
49+
RefreshToast: "Title refresh request sent",
4850
},
4951
Commands: {
5052
new: "Start a new chat",

app/locales/es.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const es: PartialLocaleType = {
4444
PinToastAction: "Ver",
4545
Delete: "Eliminar",
4646
Edit: "Editar",
47+
RefreshTitle: "Actualizar título",
48+
RefreshToast: "Se ha enviado la solicitud de actualización del título",
4749
},
4850
Commands: {
4951
new: "Nueva conversación",

app/locales/fr.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const fr: PartialLocaleType = {
4343
PinToastAction: "Voir",
4444
Delete: "Supprimer",
4545
Edit: "Modifier",
46+
RefreshTitle: "Actualiser le titre",
47+
RefreshToast: "Demande d'actualisation du titre envoyée",
4648
},
4749
Commands: {
4850
new: "Nouvelle discussion",

app/locales/id.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const id: PartialLocaleType = {
4343
PinToastAction: "Lihat",
4444
Delete: "Hapus",
4545
Edit: "Edit",
46+
RefreshTitle: "Segarkan Judul",
47+
RefreshToast: "Permintaan penyegaran judul telah dikirim",
4648
},
4749
Commands: {
4850
new: "Obrolan Baru",

0 commit comments

Comments
 (0)