mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 06:47:02 +08:00
fix: chat session cannot delete (#14312)
fix #14309 #### PR Dependency Tree * **PR #14312** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added AI chat session deletion with confirmation dialogs and success/failure notifications. * Localized AI chat panel labels, loading messages, and session management text across multiple languages. * **Documentation** * Added internationalization support for chat panel titles, history loading states, and deletion confirmations. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"ar": 99,
|
||||
"ar": 98,
|
||||
"ca": 100,
|
||||
"da": 4,
|
||||
"de": 100,
|
||||
"el-GR": 99,
|
||||
"de": 99,
|
||||
"el-GR": 98,
|
||||
"en": 100,
|
||||
"es-AR": 99,
|
||||
"es-AR": 98,
|
||||
"es-CL": 100,
|
||||
"es": 99,
|
||||
"fa": 99,
|
||||
"es": 98,
|
||||
"fa": 98,
|
||||
"fr": 100,
|
||||
"hi": 2,
|
||||
"it-IT": 100,
|
||||
"it": 1,
|
||||
"ja": 99,
|
||||
"ko": 100,
|
||||
"nb-NO": 49,
|
||||
"ja": 98,
|
||||
"ko": 99,
|
||||
"nb-NO": 48,
|
||||
"pl": 100,
|
||||
"pt-BR": 99,
|
||||
"pt-BR": 98,
|
||||
"ru": 100,
|
||||
"sv-SE": 99,
|
||||
"uk": 99,
|
||||
"uk": 98,
|
||||
"ur": 2,
|
||||
"zh-Hans": 100,
|
||||
"zh-Hant": 99
|
||||
|
||||
@@ -867,6 +867,37 @@ export function useAFFiNEI18N(): {
|
||||
* `Failed to insert template, please try again.`
|
||||
*/
|
||||
["com.affine.ai.template-insert.failed"](): string;
|
||||
/**
|
||||
* `AFFiNE AI`
|
||||
*/
|
||||
["com.affine.ai.chat-panel.title"](): string;
|
||||
/**
|
||||
* `AFFiNE AI is loading history...`
|
||||
*/
|
||||
["com.affine.ai.chat-panel.loading-history"](): string;
|
||||
/**
|
||||
* `Embedding {{done}}/{{total}}`
|
||||
*/
|
||||
["com.affine.ai.chat-panel.embedding-progress"](options: Readonly<{
|
||||
done: string;
|
||||
total: string;
|
||||
}>): string;
|
||||
/**
|
||||
* `Delete this history?`
|
||||
*/
|
||||
["com.affine.ai.chat-panel.session.delete.confirm.title"](): string;
|
||||
/**
|
||||
* `Do you want to delete this AI conversation history? Once deleted, it cannot be recovered.`
|
||||
*/
|
||||
["com.affine.ai.chat-panel.session.delete.confirm.message"](): string;
|
||||
/**
|
||||
* `History deleted`
|
||||
*/
|
||||
["com.affine.ai.chat-panel.session.delete.toast.success"](): string;
|
||||
/**
|
||||
* `Failed to delete history`
|
||||
*/
|
||||
["com.affine.ai.chat-panel.session.delete.toast.failed"](): string;
|
||||
/**
|
||||
* `All docs`
|
||||
*/
|
||||
@@ -7246,6 +7277,10 @@ export function useAFFiNEI18N(): {
|
||||
* `All docs`
|
||||
*/
|
||||
["com.affine.workspaceSubPath.all"](): string;
|
||||
/**
|
||||
* `Intelligence`
|
||||
*/
|
||||
["com.affine.workspaceSubPath.chat"](): string;
|
||||
/**
|
||||
* `Trash`
|
||||
*/
|
||||
|
||||
@@ -206,6 +206,13 @@
|
||||
"com.affine.ai.login-required.dialog-content": "To use AFFiNE AI, please sign in to your AFFiNE Cloud account.",
|
||||
"com.affine.ai.login-required.dialog-title": "Sign in to continue",
|
||||
"com.affine.ai.template-insert.failed": "Failed to insert template, please try again.",
|
||||
"com.affine.ai.chat-panel.title": "AFFiNE AI",
|
||||
"com.affine.ai.chat-panel.loading-history": "AFFiNE AI is loading history...",
|
||||
"com.affine.ai.chat-panel.embedding-progress": "Embedding {{done}}/{{total}}",
|
||||
"com.affine.ai.chat-panel.session.delete.confirm.title": "Delete this history?",
|
||||
"com.affine.ai.chat-panel.session.delete.confirm.message": "Do you want to delete this AI conversation history? Once deleted, it cannot be recovered.",
|
||||
"com.affine.ai.chat-panel.session.delete.toast.success": "History deleted",
|
||||
"com.affine.ai.chat-panel.session.delete.toast.failed": "Failed to delete history",
|
||||
"com.affine.all-pages.header": "All docs",
|
||||
"com.affine.app-sidebar.learn-more": "Learn more",
|
||||
"com.affine.app-sidebar.star-us": "Star us",
|
||||
@@ -1813,6 +1820,7 @@
|
||||
"com.affine.workspaceList.workspaceListType.local": "Local storage",
|
||||
"com.affine.workspaceList.addServer": "Add Server",
|
||||
"com.affine.workspaceSubPath.all": "All docs",
|
||||
"com.affine.workspaceSubPath.chat": "Intelligence",
|
||||
"com.affine.workspaceSubPath.trash": "Trash",
|
||||
"com.affine.workspaceSubPath.trash.empty-description": "Deleted docs will appear here.",
|
||||
"com.affine.write_with_a_blank_page": "Write with a blank page",
|
||||
|
||||
@@ -206,6 +206,13 @@
|
||||
"com.affine.ai.login-required.dialog-content": "要使用 AFFiNE AI,请先登录您的 AFFiNE Cloud 帐户。",
|
||||
"com.affine.ai.login-required.dialog-title": "登录以继续",
|
||||
"com.affine.ai.template-insert.failed": "插入模板失败,请重试。",
|
||||
"com.affine.ai.chat-panel.title": "AFFiNE AI",
|
||||
"com.affine.ai.chat-panel.loading-history": "AFFiNE AI 正在加载历史记录...",
|
||||
"com.affine.ai.chat-panel.embedding-progress": "嵌入 {{done}}/{{total}}",
|
||||
"com.affine.ai.chat-panel.session.delete.confirm.title": "删除此历史记录?",
|
||||
"com.affine.ai.chat-panel.session.delete.confirm.message": "确定要删除这段 AI 对话历史记录吗?删除后无法恢复。",
|
||||
"com.affine.ai.chat-panel.session.delete.toast.success": "已删除历史记录",
|
||||
"com.affine.ai.chat-panel.session.delete.toast.failed": "删除历史记录失败",
|
||||
"com.affine.all-pages.header": "所有文档",
|
||||
"com.affine.app-sidebar.learn-more": "了解更多",
|
||||
"com.affine.app-sidebar.star-us": "给我们点亮星标",
|
||||
@@ -1808,6 +1815,7 @@
|
||||
"com.affine.workspaceList.workspaceListType.local": "本地储存",
|
||||
"com.affine.workspaceList.addServer": "添加服务器",
|
||||
"com.affine.workspaceSubPath.all": "全部文档",
|
||||
"com.affine.workspaceSubPath.chat": "Intelligence",
|
||||
"com.affine.workspaceSubPath.trash": "回收站",
|
||||
"com.affine.workspaceSubPath.trash.empty-description": "已删除的文档将显示在此处。",
|
||||
"com.affine.write_with_a_blank_page": "在空白页面书写",
|
||||
|
||||
@@ -205,6 +205,13 @@
|
||||
"com.affine.ai.login-required.dialog-content": "要使用 AFFiNE AI,請先登入您的 AFFiNE Cloud 帳戶。",
|
||||
"com.affine.ai.login-required.dialog-title": "登入以繼續",
|
||||
"com.affine.ai.template-insert.failed": "插入模板失敗,請重試。",
|
||||
"com.affine.ai.chat-panel.title": "AFFiNE AI",
|
||||
"com.affine.ai.chat-panel.loading-history": "AFFiNE AI 正在載入歷史記錄...",
|
||||
"com.affine.ai.chat-panel.embedding-progress": "嵌入 {{done}}/{{total}}",
|
||||
"com.affine.ai.chat-panel.session.delete.confirm.title": "刪除此歷史記錄?",
|
||||
"com.affine.ai.chat-panel.session.delete.confirm.message": "確定要刪除這段 AI 對話歷史記錄嗎?刪除後無法復原。",
|
||||
"com.affine.ai.chat-panel.session.delete.toast.success": "已刪除歷史記錄",
|
||||
"com.affine.ai.chat-panel.session.delete.toast.failed": "刪除歷史記錄失敗",
|
||||
"com.affine.all-pages.header": "所有文件",
|
||||
"com.affine.app-sidebar.learn-more": "了解更多",
|
||||
"com.affine.app-sidebar.star-us": "給我們點亮星標",
|
||||
@@ -1785,6 +1792,7 @@
|
||||
"com.affine.workspaceList.workspaceListType.local": "本地儲存",
|
||||
"com.affine.workspaceList.addServer": "新增伺服器",
|
||||
"com.affine.workspaceSubPath.all": "所有頁面",
|
||||
"com.affine.workspaceSubPath.chat": "Intelligence",
|
||||
"com.affine.workspaceSubPath.trash": "廢紙簍",
|
||||
"com.affine.workspaceSubPath.trash.empty-description": "已刪除的文件將顯示在此處。",
|
||||
"com.affine.write_with_a_blank_page": "在空白頁書寫",
|
||||
|
||||
Reference in New Issue
Block a user