Skip to content

Commit 2ab8d49

Browse files
committed
other merge fixes
1 parent 0e9954d commit 2ab8d49

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

webview-ui/src/components/chat/CheckpointRestoreDialog.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export const CheckpointRestoreDialog: React.FC<CheckpointRestoreDialogProps> = (
2929
const { t } = useAppTranslation()
3030

3131
const isEdit = type === "edit"
32-
const title = isEdit ? t("common:confirmation.edit_message") : t("common:confirmation.delete_message")
32+
const title = isEdit ? t("common:confirmation.editMessage") : t("common:confirmation.deleteMessage")
3333
const description = isEdit
34-
? t("common:confirmation.edit_question_with_checkpoint")
35-
: t("common:confirmation.delete_question_with_checkpoint")
34+
? t("common:confirmation.editQuestionWithCheckpoint")
35+
: t("common:confirmation.deleteQuestionWithCheckpoint")
3636

3737
const handleConfirmWithRestore = () => {
3838
onConfirm(true)
@@ -58,13 +58,13 @@ export const CheckpointRestoreDialog: React.FC<CheckpointRestoreDialogProps> = (
5858
<AlertDialogAction
5959
onClick={handleConfirmWithoutRestore}
6060
className="bg-vscode-button-background hover:bg-vscode-button-hoverBackground text-vscode-button-foreground border-vscode-button-border">
61-
{isEdit ? t("common:confirmation.edit_only") : t("common:confirmation.delete_only")}
61+
{isEdit ? t("common:confirmation.editOnly") : t("common:confirmation.deleteOnly")}
6262
</AlertDialogAction>
6363
{hasCheckpoint && (
6464
<AlertDialogAction
6565
onClick={handleConfirmWithRestore}
6666
className="bg-vscode-button-background hover:bg-vscode-button-hoverBackground text-vscode-button-foreground border-vscode-button-border">
67-
{t("common:confirmation.restore_to_checkpoint")}
67+
{t("common:confirmation.restoreToCeckpoint")}
6868
</AlertDialogAction>
6969
)}
7070
</AlertDialogFooter>

webview-ui/src/components/chat/__tests__/CheckpointRestoreDialog.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ vi.mock("@src/i18n/TranslationContext", () => ({
1111
useAppTranslation: () => ({
1212
t: (key: string) => {
1313
const translations: Record<string, string> = {
14-
"common:confirmation.delete_message": "Delete Message",
15-
"common:confirmation.edit_message": "Edit Message",
16-
"common:confirmation.delete_question_with_checkpoint":
14+
"common:confirmation.deleteMessage": "Delete Message",
15+
"common:confirmation.editMessage": "Edit Message",
16+
"common:confirmation.deleteQuestionWithCheckpoint":
1717
"Deleting this message will delete all subsequent messages in the conversation. Do you want to proceed?",
18-
"common:confirmation.edit_question_with_checkpoint":
18+
"common:confirmation.editQuestionWithCheckpoint":
1919
"Editing this message will delete all subsequent messages in the conversation. Do you want to proceed?",
20-
"common:confirmation.edit_only": "Edit Only",
21-
"common:confirmation.delete_only": "Delete Only",
22-
"common:confirmation.restore_to_checkpoint": "Restore to Checkpoint",
20+
"common:confirmation.editOnly": "Edit Only",
21+
"common:confirmation.deleteOnly": "Delete Only",
22+
"common:confirmation.restoreToCeckpoint": "Restore to Checkpoint",
2323
"common:answers.cancel": "Cancel",
2424
}
2525
return translations[key] || key

0 commit comments

Comments
 (0)