add translations

This commit is contained in:
Tom (plebeius.eth)
2024-06-30 12:06:56 +02:00
parent ac476ba7fd
commit 7aafd73127
37 changed files with 151 additions and 39 deletions
@@ -77,6 +77,7 @@
}
.meta {
cursor: help;
font-size: 11px;
line-height: 8px;
padding: 2px 0 1px 0;
+10 -4
View File
@@ -233,7 +233,7 @@ const CatalogPost = ({ post }: { post: Comment }) => {
) : (
threadIcons
)}
<div className={styles.meta}>
<div className={styles.meta} title='(R)eplies / (L)ink Replies'>
R: <b>{replyCount || '0'}</b>
{linkCount > 0 && (
<span>
@@ -252,8 +252,14 @@ const CatalogPost = ({ post }: { post: Comment }) => {
showPortal &&
createPortal(
<div className={styles.postPreview} ref={refs.setFloating} style={floatingStyles}>
<span className={styles.postSubject}>{title}</span>
{' by '}
{title ? (
<>
<span className={styles.postSubject}>{title} </span>
{t('by')}
</>
) : (
t('posted_by')
)}{' '}
<span className={`${styles.postAuthor} ${(isCatalogPostAuthorMod || isRules || isDescription) && styles.capcode}`}>
{author?.displayName || _.capitalize(t('anonymous'))}
{isCatalogPostAuthorMod && <span className='capitalize'>{` ## Board ${catalogPostAuthorRole}`}</span>}
@@ -261,7 +267,7 @@ const CatalogPost = ({ post }: { post: Comment }) => {
<span className={styles.postAgo}> {getFormattedTimeAgo(timestamp)}</span>
{replyCount > 0 && (
<div className={styles.postLast}>
Last reply by{' '}
{t('last_reply_by')}{' '}
<span className={`${styles.postAuthor} ${isLastReplyAuthorMod && styles.capcode}`}>
{lastReply?.author?.displayName || _.capitalize(t('anonymous'))}
{isLastReplyAuthorMod && ` ## Board ${lastReplyAuthorRole}`}