From bbd3770937b76ef6519fe22831a63e70899df97d Mon Sep 17 00:00:00 2001 From: Ryan Miller Date: Thu, 28 Mar 2024 13:38:10 +1100 Subject: [PATCH] feat: remove strings no longer supported by the localization project --- ts/components/CaptionEditor.tsx | 9 +-------- ts/components/conversation/Image.tsx | 1 - ts/components/conversation/StagedAttachmentList.tsx | 2 +- ts/components/conversation/StagedLinkPreview.tsx | 2 +- ts/components/conversation/TypingAnimation.tsx | 2 +- .../conversation/media-gallery/MediaGridItem.tsx | 3 --- .../message/message-content/MessageLinkPreview.tsx | 2 +- ts/components/lightbox/Lightbox.tsx | 1 - 8 files changed, 5 insertions(+), 17 deletions(-) diff --git a/ts/components/CaptionEditor.tsx b/ts/components/CaptionEditor.tsx index 20e51b2ce..1dd9494ce 100644 --- a/ts/components/CaptionEditor.tsx +++ b/ts/components/CaptionEditor.tsx @@ -17,14 +17,7 @@ const CaptionEditorObject = (props: Props) => { const isImageTypeSupported = GoogleChrome.isImageTypeSupported(contentType); if (isImageTypeSupported) { - return ( - {window.i18n('imageAttachmentAlt')} - ); + return ; } const isVideoTypeSupported = GoogleChrome.isVideoTypeSupported(contentType); diff --git a/ts/components/conversation/Image.tsx b/ts/components/conversation/Image.tsx index dc051e219..d29c62736 100644 --- a/ts/components/conversation/Image.tsx +++ b/ts/components/conversation/Image.tsx @@ -145,7 +145,6 @@ export const Image = (props: Props) => { {window.i18n('imageCaptionIconAlt')} ) : null} diff --git a/ts/components/conversation/StagedAttachmentList.tsx b/ts/components/conversation/StagedAttachmentList.tsx index cf5d3218a..2211e814d 100644 --- a/ts/components/conversation/StagedAttachmentList.tsx +++ b/ts/components/conversation/StagedAttachmentList.tsx @@ -85,7 +85,7 @@ export const StagedAttachmentList = (props: Props) => { return ( {window.i18n('stagedImageAttachment', { {isLoaded && image && isContentTypeImage ? ( {window.i18n('stagedPreviewThumbnail', { return ( - + diff --git a/ts/components/conversation/media-gallery/MediaGridItem.tsx b/ts/components/conversation/media-gallery/MediaGridItem.tsx index 1b4822afa..6557bf196 100644 --- a/ts/components/conversation/media-gallery/MediaGridItem.tsx +++ b/ts/components/conversation/media-gallery/MediaGridItem.tsx @@ -15,7 +15,6 @@ type Props = { const MediaGridItemContent = (props: Props) => { const { mediaItem } = props; - const i18n = window.i18n; const { attachment, contentType } = mediaItem; const urlToDecrypt = mediaItem.thumbnailObjectUrl || ''; @@ -50,7 +49,6 @@ const MediaGridItemContent = (props: Props) => { return ( {i18n('lightboxImageAlt')} { return (
{i18n('lightboxImageAlt')} {
{window.i18n('previewThumbnail',