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>
<Title>{t("sheet_delete.title")}</Title>
<Body>
{t("sheet_delete.message1")} <strong>'{sheetName}'</strong>{" "}
{t("sheet_delete.message2")}
{t("sheet_delete.message", {
sheetName,
})}
</Body>
<ButtonGroup>
<DeleteButton onClick={onDelete} autoFocus>

View File

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