From 793fb3cb09097d1de69fab66ba08b165ceda42a6 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sat, 4 May 2024 17:21:19 +0200 Subject: [PATCH] forgot 'gif' file type in translations --- src/components/post/post.tsx | 4 ++-- src/lib/utils/media-utils.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index ec5ce85d..f4905b03 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -77,7 +77,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps) {url.length > 30 ? url.slice(0, 30) + '...' : url} {' '} - ({type && getDisplayMediaInfoType(type, t)}) + ({type && _.lowerCase(getDisplayMediaInfoType(type, t))}) {!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && ( {' '} @@ -286,7 +286,7 @@ const ReplyDesktop = ({ reply, roles, openReplyModal }: PostProps) => { {link.length > 30 ? link?.slice(0, 30) + '...' : link} {' '} - ({type && getDisplayMediaInfoType(type, t)}) + ({type && _.lowerCase(getDisplayMediaInfoType(type, t))}) {!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && ( {' '} diff --git a/src/lib/utils/media-utils.ts b/src/lib/utils/media-utils.ts index 2fd0a2f0..073ce65e 100644 --- a/src/lib/utils/media-utils.ts +++ b/src/lib/utils/media-utils.ts @@ -15,6 +15,8 @@ export const getDisplayMediaInfoType = (type: string, t: any) => { switch (type) { case 'image': return t('image'); + case 'gif': + return t('gif'); case 'iframe': return t('iframe'); case 'video':