mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-01-27 03:47:31 +00:00
fix: use i18next v4+ pluralization format and add sessionTitle fallback
This commit is contained in:
@@ -583,7 +583,7 @@ function Sidebar({
|
|||||||
<p className="text-sm text-muted-foreground mb-1">
|
<p className="text-sm text-muted-foreground mb-1">
|
||||||
{t('deleteConfirmation.confirmDelete')}{' '}
|
{t('deleteConfirmation.confirmDelete')}{' '}
|
||||||
<span className="font-medium text-foreground">
|
<span className="font-medium text-foreground">
|
||||||
{sessionDeleteConfirmation.sessionTitle}
|
{sessionDeleteConfirmation.sessionTitle || t('sessions.unnamed')}
|
||||||
</span>?
|
</span>?
|
||||||
</p>
|
</p>
|
||||||
<p className="text-xs text-muted-foreground mt-3">
|
<p className="text-xs text-muted-foreground mt-3">
|
||||||
|
|||||||
@@ -103,8 +103,8 @@
|
|||||||
"deleteProject": "Delete Project",
|
"deleteProject": "Delete Project",
|
||||||
"deleteSession": "Delete Session",
|
"deleteSession": "Delete Session",
|
||||||
"confirmDelete": "Are you sure you want to delete",
|
"confirmDelete": "Are you sure you want to delete",
|
||||||
"sessionCount": "This project contains {{count}} conversation.",
|
"sessionCount_one": "This project contains {{count}} conversation.",
|
||||||
"sessionCount_plural": "This project contains {{count}} conversations.",
|
"sessionCount_other": "This project contains {{count}} conversations.",
|
||||||
"allConversationsDeleted": "All conversations will be permanently deleted.",
|
"allConversationsDeleted": "All conversations will be permanently deleted.",
|
||||||
"cannotUndo": "This action cannot be undone."
|
"cannotUndo": "This action cannot be undone."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,8 +103,8 @@
|
|||||||
"deleteProject": "删除项目",
|
"deleteProject": "删除项目",
|
||||||
"deleteSession": "删除会话",
|
"deleteSession": "删除会话",
|
||||||
"confirmDelete": "您确定要删除",
|
"confirmDelete": "您确定要删除",
|
||||||
"sessionCount": "此项目包含 {{count}} 个对话。",
|
"sessionCount_one": "此项目包含 {{count}} 个对话。",
|
||||||
"sessionCount_plural": "此项目包含 {{count}} 个对话。",
|
"sessionCount_other": "此项目包含 {{count}} 个对话。",
|
||||||
"allConversationsDeleted": "所有对话将被永久删除。",
|
"allConversationsDeleted": "所有对话将被永久删除。",
|
||||||
"cannotUndo": "此操作无法撤销。"
|
"cannotUndo": "此操作无法撤销。"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user