Fix: simplified code by having only 1 dynamic message

This commit is contained in:
Daniel
2025-01-26 19:00:00 +01:00
parent 20c4a596bf
commit 0c15ae194d
2 changed files with 4 additions and 4 deletions

View File

@@ -27,8 +27,9 @@ function SheetDeleteDialog({
</IconWrapper> </IconWrapper>
<Title>{t("sheet_delete.title")}</Title> <Title>{t("sheet_delete.title")}</Title>
<Body> <Body>
{t("sheet_delete.message1")} <strong>'{sheetName}'</strong>{" "} {t("sheet_delete.message", {
{t("sheet_delete.message2")} sheetName,
})}
</Body> </Body>
<ButtonGroup> <ButtonGroup>
<DeleteButton onClick={onDelete} autoFocus> <DeleteButton onClick={onDelete} autoFocus>

View File

@@ -70,8 +70,7 @@
}, },
"sheet_delete": { "sheet_delete": {
"title": "Are you sure?", "title": "Are you sure?",
"message1": "The sheet", "message": "The sheet '{{sheetName}}' will be permanently deleted. This action cannot be undone.",
"message2": "will be permanently deleted. This action cannot be undone.",
"confirm": "Yes, delete sheet", "confirm": "Yes, delete sheet",
"cancel": "Cancel" "cancel": "Cancel"
}, },