mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-22 21:48:45 -05:00
fix: delete confirmation dialog title translation (#7358)
Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com>
This commit is contained in:
@@ -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={
|
||||
|
||||
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user