chore(translations): rules, welcome to board, comment too long, replies omitted, replies and links omitted

This commit is contained in:
plebeius.eth
2024-04-28 22:05:06 +02:00
parent 20fe683e5b
commit 72f15c3566
38 changed files with 236 additions and 50 deletions
@@ -1,4 +1,6 @@
import Post from '../post';
import { useTranslation } from 'react-i18next';
import _ from 'lodash';
interface RulesPostProps {
subplebbitAddress: string | undefined;
@@ -7,6 +9,7 @@ interface RulesPostProps {
}
const SubplebbitRules = ({ subplebbitAddress, createdAt, rules }: RulesPostProps) => {
const { t } = useTranslation();
const content = rules.map((rule, index) => `${index + 1}. ${rule}`).join('\n');
const post = {
isRules: true,
@@ -14,7 +17,7 @@ const SubplebbitRules = ({ subplebbitAddress, createdAt, rules }: RulesPostProps
timestamp: createdAt,
author: { displayName: '## Board Mods' },
content,
title: 'Rules',
title: _.capitalize(t('rules')),
pinned: true,
locked: true,
};