fix: delete confirmation dialog title translation (#7358)

Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
This commit is contained in:
Balázs Úr
2026-03-02 08:06:14 +01:00
committed by GitHub
parent 7eb94f0bd5
commit 2740cd16b9
21 changed files with 34 additions and 19 deletions
@@ -99,7 +99,7 @@ export const ContactControlBar = ({
<DeleteDialog
open={deleteDialogOpen}
setOpen={setDeleteDialogOpen}
deleteWhat="person"
deleteWhat={t("common.person")}
onDelete={handleDeletePerson}
isDeleting={isDeletingPerson}
text={
@@ -66,7 +66,7 @@ export const DeleteContactButton = ({
<DeleteDialog
open={deleteDialogOpen}
setOpen={setDeleteDialogOpen}
deleteWhat="person"
deleteWhat={t("common.person")}
onDelete={handleDeletePerson}
isDeleting={isDeletingPerson}
text={
@@ -168,7 +168,7 @@ export const MemberActions = ({ organization, member, invite, showDeleteButton }
<DeleteDialog
open={isDeleteMemberModalOpen}
setOpen={setDeleteMemberModalOpen}
deleteWhat={`${memberName} ${t("environments.settings.general.from_your_organization")}`}
deleteWhat={t("environments.settings.general.from_your_organization", { memberName })}
onDelete={handleDeleteMember}
isDeleting={isDeleting}
text={t("environments.settings.general.delete_member_confirmation")}
@@ -89,7 +89,7 @@ export const DeleteProjectRender = ({
)}
<DeleteDialog
deleteWhat="Workspace"
deleteWhat={t("environments.settings.domain.workspace")}
open={isDeleteDialogOpen}
setOpen={setIsDeleteDialogOpen}
onDelete={handleDeleteProject}
@@ -246,7 +246,7 @@ export const SurveyDropDownMenu = ({
{!isSurveyCreationDeletionDisabled && (
<DeleteDialog
deleteWhat="Survey"
deleteWhat={t("common.survey")}
open={isDeleteDialogOpen}
setOpen={setDeleteDialogOpen}
onDelete={() => handleDeleteSurvey(survey.id)}
@@ -48,7 +48,7 @@ export const DeleteDialog = ({
<div className="flex items-center gap-2">
<CircleAlert className="h-4 w-4" />
<div>
<DialogTitle>{`${t("common.delete")} ${deleteWhat}`}</DialogTitle>
<DialogTitle>{t("common.delete_what", { deleteWhat })}</DialogTitle>
<DialogDescription>
{t("environments.workspace.general.this_action_cannot_be_undone")}
</DialogDescription>