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'> <a href={url} target='_blank' rel='noopener noreferrer'>
{url.length > 30 ? url.slice(0, 30) + '...' : url} {url.length > 30 ? url.slice(0, 30) + '...' : url}
</a>{' '} </a>{' '}
({type && getDisplayMediaInfoType(type, t)}) ({type && _.lowerCase(getDisplayMediaInfoType(type, t))})
{!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && ( {!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && (
<span> <span>
{' '} {' '}
@@ -286,7 +286,7 @@ const ReplyDesktop = ({ reply, roles, openReplyModal }: PostProps) => {
<a href={link} target='_blank' rel='noopener noreferrer'> <a href={link} target='_blank' rel='noopener noreferrer'>
{link.length > 30 ? link?.slice(0, 30) + '...' : link} {link.length > 30 ? link?.slice(0, 30) + '...' : link}
</a>{' '} </a>{' '}
({type && getDisplayMediaInfoType(type, t)}) ({type && _.lowerCase(getDisplayMediaInfoType(type, t))})
{!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && ( {!showThumbnail && (type === 'iframe' || type === 'video' || type === 'audio') && (
<span> <span>
{' '} {' '}
+2
View File
@@ -15,6 +15,8 @@ export const getDisplayMediaInfoType = (type: string, t: any) => {
switch (type) { switch (type) {
case 'image': case 'image':
return t('image'); return t('image');
case 'gif':
return t('gif');
case 'iframe': case 'iframe':
return t('iframe'); return t('iframe');
case 'video': case 'video':