diff --git a/frontend/src/components/editor-page/document-bar/note-info/note-info-modal.tsx b/frontend/src/components/editor-page/document-bar/note-info/note-info-modal.tsx
index 56fbc2dde..5720d88f3 100644
--- a/frontend/src/components/editor-page/document-bar/note-info/note-info-modal.tsx
+++ b/frontend/src/components/editor-page/document-bar/note-info/note-info-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -28,7 +28,7 @@ export const NoteInfoModal: React.FC = ({ show, onHide })
show={show}
onHide={onHide}
showCloseButton={true}
- title={'editor.modal.documentInfo.title'}
+ titleI18nKey={'editor.modal.documentInfo.title'}
{...cypressId('document-info-modal')}>
diff --git a/frontend/src/components/editor-page/document-bar/permissions/permission-modal.tsx b/frontend/src/components/editor-page/document-bar/permissions/permission-modal.tsx
index 469538bff..d4898fc58 100644
--- a/frontend/src/components/editor-page/document-bar/permissions/permission-modal.tsx
+++ b/frontend/src/components/editor-page/document-bar/permissions/permission-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -19,7 +19,7 @@ import { Modal } from 'react-bootstrap'
*/
export const PermissionModal: React.FC = ({ show, onHide }) => {
return (
-
+
diff --git a/frontend/src/components/editor-page/document-bar/revisions/revision-modal.tsx b/frontend/src/components/editor-page/document-bar/revisions/revision-modal.tsx
index 6f1e4d032..466c7c82c 100644
--- a/frontend/src/components/editor-page/document-bar/revisions/revision-modal.tsx
+++ b/frontend/src/components/editor-page/document-bar/revisions/revision-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -27,7 +27,7 @@ export const RevisionModal: React.FC = ({ show, onHide })
= ({ show, onHide }) =>
const noteIdentifier = useApplicationState((state) => state.noteDetails.primaryAddress)
return (
-
+
diff --git a/frontend/src/components/editor-page/editor-pane/max-length-warning/max-length-warning-modal.tsx b/frontend/src/components/editor-page/editor-pane/max-length-warning/max-length-warning-modal.tsx
index b1733fcc5..a04b1f74c 100644
--- a/frontend/src/components/editor-page/editor-pane/max-length-warning/max-length-warning-modal.tsx
+++ b/frontend/src/components/editor-page/editor-pane/max-length-warning/max-length-warning-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -26,7 +26,7 @@ export const MaxLengthWarningModal: React.FC = ({ show, on
{...cypressId('limitReachedModal')}
show={show}
onHide={onHide}
- title={'editor.error.limitReached.title'}
+ titleI18nKey={'editor.error.limitReached.title'}
showCloseButton={true}>
diff --git a/frontend/src/components/editor-page/editor-pane/tool-bar/table-picker/custom-table-size-modal.tsx b/frontend/src/components/editor-page/editor-pane/tool-bar/table-picker/custom-table-size-modal.tsx
index c9213b0ca..8f67eff6b 100644
--- a/frontend/src/components/editor-page/editor-pane/tool-bar/table-picker/custom-table-size-modal.tsx
+++ b/frontend/src/components/editor-page/editor-pane/tool-bar/table-picker/custom-table-size-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -65,7 +65,7 @@ export const CustomTableSizeModal: React.FC = ({ show
diff --git a/frontend/src/components/editor-page/sidebar/delete-note-sidebar-entry/delete-note-modal.tsx b/frontend/src/components/editor-page/sidebar/delete-note-sidebar-entry/delete-note-modal.tsx
index 33e25c0b3..0f3305a08 100644
--- a/frontend/src/components/editor-page/sidebar/delete-note-sidebar-entry/delete-note-modal.tsx
+++ b/frontend/src/components/editor-page/sidebar/delete-note-sidebar-entry/delete-note-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -53,7 +53,7 @@ export const DeleteNoteModal: React.FC
+ titleI18nKey={modalTitleI18nKey ?? 'editor.modal.deleteNote.title'}>
diff --git a/frontend/src/components/history-page/history-toolbar/clear-history-button.tsx b/frontend/src/components/history-page/history-toolbar/clear-history-button.tsx
index fa9ea95c4..4fd291d46 100644
--- a/frontend/src/components/history-page/history-toolbar/clear-history-button.tsx
+++ b/frontend/src/components/history-page/history-toolbar/clear-history-button.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -46,7 +46,7 @@ export const ClearHistoryButton: React.FC = () => {
deletionButtonI18nKey={'landing.history.toolbar.clear'}
show={modalVisibility}
onHide={closeModal}
- title={'landing.history.modal.clearHistory.title'}>
+ titleI18nKey={'landing.history.modal.clearHistory.title'}>
diff --git a/frontend/src/components/landing-layout/footer/version-info/version-info-modal.tsx b/frontend/src/components/landing-layout/footer/version-info/version-info-modal.tsx
index c1cae94a8..e9786e6d3 100644
--- a/frontend/src/components/landing-layout/footer/version-info/version-info-modal.tsx
+++ b/frontend/src/components/landing-layout/footer/version-info/version-info-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -41,7 +41,7 @@ export const VersionInfoModal: React.FC = ({ onHide, show }) =
show={show}
onHide={onHide}
showCloseButton={true}
- title={'landing.versionInfo.title'}>
+ titleI18nKey={'landing.versionInfo.title'}>
= ({ show, onHide }) => {
modalSize={'lg'}
onHide={onHide}
titleIcon={'cog'}
- title={'settings.title'}
+ titleI18nKey={'settings.title'}
showCloseButton={true}>
diff --git a/frontend/src/components/markdown-renderer/extensions/image/image-lightbox-modal.tsx b/frontend/src/components/markdown-renderer/extensions/image/image-lightbox-modal.tsx
index 7d8af1b52..a1ad0e175 100644
--- a/frontend/src/components/markdown-renderer/extensions/image/image-lightbox-modal.tsx
+++ b/frontend/src/components/markdown-renderer/extensions/image/image-lightbox-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -32,8 +32,7 @@ export const ImageLightboxModal: React.FC = ({ show, on
onHide={onHide}
showCloseButton={true}
additionalClasses={styles.lightbox}
- title={alt ?? title ?? ''}
- titleIsI18nKey={false}>
+ title={title ?? alt ?? ''}>
)
diff --git a/frontend/src/components/profile-page/access-tokens/access-token-created-modal.tsx b/frontend/src/components/profile-page/access-tokens/access-token-created-modal.tsx
index c54125eed..ff4058b45 100644
--- a/frontend/src/components/profile-page/access-tokens/access-token-created-modal.tsx
+++ b/frontend/src/components/profile-page/access-tokens/access-token-created-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -32,7 +32,7 @@ export const AccessTokenCreatedModal: React.FC = (
=
diff --git a/frontend/src/components/profile-page/account-management/account-deletion-modal.tsx b/frontend/src/components/profile-page/account-management/account-deletion-modal.tsx
index ba14a9a1e..3f488181f 100644
--- a/frontend/src/components/profile-page/account-management/account-deletion-modal.tsx
+++ b/frontend/src/components/profile-page/account-management/account-deletion-modal.tsx
@@ -1,5 +1,5 @@
/*
- * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
+ * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@@ -42,7 +42,7 @@ export const AccountDeletionModal: React.FC = ({ show, onH
}, [dispatchUiNotification, onHide, showErrorNotification])
return (
-
+