diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx
index d537da2..512dbf6 100644
--- a/src/components/Sidebar.jsx
+++ b/src/components/Sidebar.jsx
@@ -521,10 +521,10 @@ function Sidebar({
- Delete Project
+ {t('deleteConfirmation.deleteProject')}
- Are you sure you want to delete{' '}
+ {t('deleteConfirmation.confirmDelete')}{' '}
{deleteConfirmation.project.displayName || deleteConfirmation.project.name}
?
@@ -532,15 +532,15 @@ function Sidebar({
{deleteConfirmation.sessionCount > 0 && (
- This project contains {deleteConfirmation.sessionCount} conversation{deleteConfirmation.sessionCount > 1 ? 's' : ''}.
+ {t('deleteConfirmation.sessionCount', { count: deleteConfirmation.sessionCount })}
- All conversations will be permanently deleted.
+ {t('deleteConfirmation.allConversationsDeleted')}
)}
- This action cannot be undone.
+ {t('deleteConfirmation.cannotUndo')}
@@ -551,7 +551,7 @@ function Sidebar({
className="flex-1"
onClick={() => setDeleteConfirmation(null)}
>
- Cancel
+ {t('actions.cancel')}
@@ -578,16 +578,16 @@ function Sidebar({
- Delete Session
+ {t('deleteConfirmation.deleteSession')}
- Are you sure you want to delete{' '}
+ {t('deleteConfirmation.confirmDelete')}{' '}
{sessionDeleteConfirmation.sessionTitle}
?
- This action cannot be undone.
+ {t('deleteConfirmation.cannotUndo')}
@@ -598,7 +598,7 @@ function Sidebar({
className="flex-1"
onClick={() => setSessionDeleteConfirmation(null)}
>
- Cancel
+ {t('actions.cancel')}
diff --git a/src/i18n/locales/en/sidebar.json b/src/i18n/locales/en/sidebar.json
index eb7a0d9..41689fa 100644
--- a/src/i18n/locales/en/sidebar.json
+++ b/src/i18n/locales/en/sidebar.json
@@ -98,5 +98,14 @@
},
"version": {
"updateAvailable": "Update available"
+ },
+ "deleteConfirmation": {
+ "deleteProject": "Delete Project",
+ "deleteSession": "Delete Session",
+ "confirmDelete": "Are you sure you want to delete",
+ "sessionCount": "This project contains {{count}} conversation.",
+ "sessionCount_plural": "This project contains {{count}} conversations.",
+ "allConversationsDeleted": "All conversations will be permanently deleted.",
+ "cannotUndo": "This action cannot be undone."
}
}
diff --git a/src/i18n/locales/zh-CN/sidebar.json b/src/i18n/locales/zh-CN/sidebar.json
index e5e3c65..a3c5808 100644
--- a/src/i18n/locales/zh-CN/sidebar.json
+++ b/src/i18n/locales/zh-CN/sidebar.json
@@ -98,5 +98,14 @@
},
"version": {
"updateAvailable": "有可用更新"
+ },
+ "deleteConfirmation": {
+ "deleteProject": "删除项目",
+ "deleteSession": "删除会话",
+ "confirmDelete": "您确定要删除",
+ "sessionCount": "此项目包含 {{count}} 个对话。",
+ "sessionCount_plural": "此项目包含 {{count}} 个对话。",
+ "allConversationsDeleted": "所有对话将被永久删除。",
+ "cannotUndo": "此操作无法撤销。"
}
}