diff --git a/app/scenes/Document/components/Document.js b/app/scenes/Document/components/Document.js index eea8d7b9f..25c173a47 100644 --- a/app/scenes/Document/components/Document.js +++ b/app/scenes/Document/components/Document.js @@ -392,18 +392,20 @@ class DocumentScene extends React.Component { )} {document.archivedAt && !document.deletedAt && ( - - Archived by {document.updatedBy.name}{" "} - + {t("Archived by {{userName}}", { + userName: document.updatedBy.name, + })}{" "} + )} {document.deletedAt && ( - - Deleted by {document.updatedBy.name}{" "} - + + {t("Deleted by {{userName}}", { + userName: document.updatedBy.name, + })}{" "} + {document.permanentlyDeletedAt && ( <>
diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 6d24eeb38..6c155fb23 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -308,8 +308,8 @@ "You have unsaved changes.\nAre you sure you want to discard them?": "You have unsaved changes.\nAre you sure you want to discard them?", "Images are still uploading.\nAre you sure you want to discard them?": "Images are still uploading.\nAre you sure you want to discard them?", "You’re editing a template. Highlight some text and use the <2> control to add placeholders that can be filled out when creating new documents from this template.": "You’re editing a template. Highlight some text and use the <2> control to add placeholders that can be filled out when creating new documents from this template.", - "Archived by {document.updatedBy.name} <3> ago": "Archived by {document.updatedBy.name} <3> ago", - "Deleted by {document.updatedBy.name} <3> ago": "Deleted by {document.updatedBy.name} <3> ago", + "Archived by {{userName}}": "Archived by {{userName}}", + "Deleted by {{userName}}": "Deleted by {{userName}}", "This template will be permanently deleted in <2> unless restored.": "This template will be permanently deleted in <2> unless restored.", "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Start your template…": "Start your template…",