forgot 'gif' file type in translations

This commit is contained in:
plebeius.eth
2024-05-04 17:21:19 +02:00
parent 8456588752
commit 793fb3cb09
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -77,7 +77,7 @@ const PostDesktop = ({ openReplyModal, post, roles, showAllReplies }: PostProps)
<a href={url} target='_blank' rel='noopener noreferrer'>
{url.length > 30 ? url.slice(0, 30) + '...' : url}
</a>{' '}
({type && getDisplayMediaInfoType(type, t)})
({type && _.lowerCase(getDisplayMediaInfoType(type, t))})
{!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && (
<span>
{' '}
@@ -286,7 +286,7 @@ const ReplyDesktop = ({ reply, roles, openReplyModal }: PostProps) => {
<a href={link} target='_blank' rel='noopener noreferrer'>
{link.length > 30 ? link?.slice(0, 30) + '...' : link}
</a>{' '}
({type && getDisplayMediaInfoType(type, t)})
({type && _.lowerCase(getDisplayMediaInfoType(type, t))})
{!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && (
<span>
{' '}
+2
View File
@@ -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':